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
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
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