+ 1

I don't understand how the "super" keyword works. Need some help, please.

15th Jul 2016, 1:53 PM
arghlub
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;-)
15th Jul 2016, 3:03 PM
vetarikisa
+ 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
22nd Jul 2016, 4:36 AM
Eric Gitangu
Eric Gitangu - avatar
0
thanks... I finally understood, Imade a sort of RTFM (as they say -i'm a linuxian)... thanks again. (xcuse my bad english)
22nd Jul 2016, 6:31 AM
arghlub
0
super() only refers to the superclass, you can use it outside the constructor too
11th Nov 2016, 5:01 PM
Nofel Tiani
Nofel Tiani - avatar