+ 1
I don't understand how the "super" keyword works. Need some help, please.
4 Respostas
+ 2
When you want to call constructor of super class in subclass constructor you use keyword super. And there is one constraint,super() call have to be first statement in subclass constructor.have a nice day;-)
+ 2
works for inheritance, when you call super on a method, you are calling for its base class implementation and not the implementation you have in your derived class
0
thanks... I finally understood, Imade a sort of RTFM (as they say -i'm a linuxian)... thanks again. (xcuse my bad english)
0
super() only refers to the superclass, you can use it outside the constructor too