A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
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
I agree. Here's the link:
subject: What are the rules for using 'super' keyword ?
Problems in Inheritence
how can we access a method from sub class from its super class?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013