| Author |
What are the rules for using 'super' keyword ?
|
ashwin bhawsar
Ranch Hand
Joined: Mar 16, 2011
Posts: 62
|
|
|
What are the rules/restructions/scenarios for how & where we can and cannot use the 'super' keyword.
|
 |
shaileshkumar mistry
Greenhorn
Joined: Dec 19, 2011
Posts: 19
|
|
can
super.<method_Name>() is used to call a method of super class.
super keyword can be use to call the constructor of the superclass in the base class.
can't
super keyword can not be used inside static methods.
|
Thanks and Regards
OCPJP 100%
|
 |
 |
|
|
subject: What are the rules for using 'super' keyword ?
|
|
|