Question: For C++, please. For this lab, your objective is to create the header file Circle.h. Define the class Circle that has components o Private double

For C++, please. For this lab, your objective is to create theFor C++, please.

For this lab, your objective is to create the header file "Circle.h". Define the class Circle that has components o Private double field named radius. Public static constant double field named PI which is initialized to 3.141592. Public default constructor. It assigns 1 to radius. O Public overloaded constructor that takes a double parameter. If the parameter is positive, it assigns the param- eter to radius; otherwise, it assigns 1 to radius. Public copy constructor. O Public assignment operator. O Public empty destructor. | Public get method for radius. Public constant get method for radius. O Public set method for radius. O Public double constant method named Diameter() that takes no parameters. It returns the diameter of the circle. O Public double constant method named Circumference() that takes no parameters. It returns the circumference of the circle. O Public double constant method named Area () that takes no parameters. It returns the area of the circle. Public constant string method named ToString() that takes no parameters. It returns radius with one decimal point as a string. o Overloaded ostream operator. It returns the same as ToString()

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!