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