Create a class named 'Rectangle' with two data members 'length' and 'breadth' and two methods to print the area. Then create a class named ‘Square’ with data member radius and method to print the area. Print the area of a rectangle and a square with Uses A relationship by creating another class Shape_of_rectangle.
Comments
Leave a comment