michael.zhang Posted August 29, 2011 Posted August 29, 2011 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
danni.coy Posted August 30, 2011 Posted August 30, 2011 like this class Foo {}; class Bar : Foo { Bar() { __Foo__(); // call super constructor- } };
michael.zhang Posted August 30, 2011 Author Posted August 30, 2011 Aha! You are correct :) Thank you. Interestingly, my method will compile, though I am unsure of what results from it.
Recommended Posts