Professional Documents
Culture Documents
if a class contains more then one method with same name but different parameters
than it is called method overloading.
means signature of method is different.
which method is called depends on the types of parameters which we pass at the time
of calling.
create a java program which overload area method for calculating area of different
shalps like
ractangle,square,circle,triangle.
and call all shaps area method from main method.