Fill This Form To Receive Instant Help
Homework answers / question archive / Create a Shape class, which contains length, width, and radius three private data members (int) and two public member functions rectangleArea and circleArea
Create a Shape class, which contains length, width, and radius three private data members (int) and two public member functions rectangleArea and circleArea.
b) Get data members values from user, set all values using constructor and print rectangleArea and
circleArea functions results in main function.
(04 + 03+ 03 Marks)
Formulas: Circle Area: π (r * r) Rectangle Area: width * length