Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

Overloaded Methods
Overloded method is bassically use for the same method name in a class but with diff argument .Overloaded a method often means we were being a little nicer to those we call our methods.becouse our code of burdun of coping with different argument types rather than forcing the caller
to do conversions prior to invoking our method , te rules are simple which is follwoing as :
> Overloaded methods must change the argument list.
>  Overloaded methods can change the return type.
> Overloaded methods can change the access modifier.
>  Overloaded methods can declare new or broader checked exceptions.
>  A method can be overloaded in the same class or in a subclass
Posted By: Name:Rajesh Kr URL: Overloaded Methods