Computer Science, asked by lavaniya8212, 3 months ago

We have to calculate the area of a rectangle, a square and a circle. Create an interface class 'Shape' with three methods namely 'RectangleArea' taking two parameters, 'SquareArea' and 'CircleArea' taking one parameter each. The parameters of 'RectangleArea' are its length and breadth, that of 'SquareArea' is its side and that of 'CircleArea' is its radius. Now create another class 'Area' which implements superclass containing all the three methods 'RectangleArea', 'SquareArea' and 'CircleArea' for printing the area of rectangle, square and circle respectively. Create an object of class 'Area' and call all the three methods. Extend this program so that your program able to calculate the area of the objects. Call method CalculateArea accordingly.

Answers

Answered by RuthlessRudra
2

Answer:

sry idk the answer

Explanation:

plz mark me a stage BRAINLIEST

Similar questions