asked 127k views
5 votes
Code for the below question

We have to calculate the area of a rectangle, a square and a circle. Create an
interface 'Shape' with three methods declarations 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' 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.​

asked
User Bwags
by
8.3k points

1 Answer

3 votes

Explanation:

can I use python?

yes or no

answered
User Martijn
by
7.9k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.