Showing posts with label constructor overloading. Show all posts
Showing posts with label constructor overloading. Show all posts

Monday, 20 January 2014

A CLOSER LOOK AT METHODS AND CLASSES

METHOD OVERLOADING


If a class have multiple methods by same name but different parameters, it is known as Method Overloading.Method overloading is one of the ways through which java supports polymorphism. Method overloading can be done by changing number of arguments or by changing the data type of arguments.If two or more method have same name and same parameter list but differs in return type are not said to be overloaded method.