Question: C++ help! Create classes for a Shape, Circle, and Rectangle. All shapes have a name and color and they take up some area. However, a

C++ help!

C++ help! Create classes for a Shape, Circle, and Rectangle. All shapes

Create classes for a Shape, Circle, and Rectangle. All shapes have a name and color and they take up some area. However, a circle's area is dependent upon its radius, while a rectangle's area is dependent on a length and width. You are to create these classes with the correct attributes in the correct class, with mutators and accessors for all the attributes, You are to create these classes with the correct attributes in the correct class, with mutators and accessors for all the attributes. For your design be certain to answer these questions. What data members will you need in each class? What functions will you need in each class? Are the functions the same or different? Which function will you use to create the polymorphism

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!