Jump to content

super constructor


photo

Recommended Posts

Hello,

 

I couldn't find anything in the documentation regarding super constructors.

 

I've been using:

 


class Foo{};
class Bar : Foo{
  Bar(){
     Foo::__Foo__(); // call super constructor
  }
};

 

Is this the correct way to do this?

 

 

 

 

Michael

Link to comment
×
×
  • Create New...