WAP a program with overloaded functions that computes area of circle, rectangle and square.
Answers
Answered by
2
Answer:
Java Program to Find Area of Square,Rectangle and Circle using Method Overloading
class OverloadDemo.
void area(float x)
System. out. println("the area of the square is "+Math. ...
void area(float x, float y)
System. out. ...
void area(double x)
double z = 3.14 * x * x;
System. out.
Answered by
0
This program finds the area of square, rectangle and circle using method overloading. In this program we have three methods with same name area(), which.
Similar questions
Biology,
3 months ago
English,
3 months ago
Science,
3 months ago
Social Sciences,
6 months ago
Hindi,
6 months ago
Computer Science,
11 months ago