Question: Design two C++ classes Rectangle and Circle to represent the geometric shapes Rectangle and Circle, respectively. The class should have the appropriate data and function
Design two C++ classes Rectangle and Circle to represent the geometric shapes Rectangle and Circle, respectively. The class should have the appropriate data and function members. In addition, the classes should have const function members that return the perimeter and area of the geometric shape. Next, add 2 appropriate constructors, a destructor, and their code for each of class. Recall that the destructors in this case will be empty statement blocks. Assume that the default measurement for length, width, and radius is 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
