A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
What are the rules for using 'super' keyword ?
Joined: Mar 16, 2011
Aug 14, 2012 10:15:23
What are the rules/restructions/scenarios for how & where we can and cannot use the 'super' keyword.
Joined: Dec 19, 2011
Aug 14, 2012 11:16:11
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.
super keyword can not be used inside static methods.
Thanks and Regards
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: What are the rules for using 'super' keyword ?
how can we access a method from sub class from its super class?
Problems in Inheritence
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015