what does this syntax mean

  • Thread starter Thread starter ichor
  • Start date Start date
I

ichor

hi i have nt come acroos this syntax in OOP .
can you plz explain what this means?

public FormsView(DataInstance dataInstance): base(dataInstance)

this is a constructor.

thnx
 
the :base(dataInstance) is calling the base component's constructor with the
dataInstance param.
 
its kinda a cross between C++ using the : after the constructor protoype
but before the { and Java's super.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top