Overloading « Class « Java






1.Demonstration of both constructor and ordinary method overloadingDemonstration of both constructor and ordinary method overloading
2.Overloaded constructor
3.Overloaded methodOverloaded method
4.Demonstration of overriding fieldsDemonstration of overriding fields
5.Overloading based on the order of the argumentsOverloading based on the order of the arguments
6.Promotion of primitives and overloadingPromotion of primitives and overloading
7.Overloading a base-class method name in a derived class does not hide the base-class versionsOverloading a base-class method name in a derived class does not hide the base-class versions
8.Demotion of primitives and overloading