program that calculate area of different shapes in which data types are same but difference in number of parameters using concept of method overloading
Answers
Answered by
1
Answer:
Overloaded methods are differentiated based on the number and type of the parameters passed as an arguments to the methods. ... The compiler does not consider the return type while differentiating the overloaded method. But you cannot declare two methods with the same signature and different return type.
Plz follow me...
Similar questions