Question: to be done in c++. i have the driver specified for the circle program, so no need to code that. I do not have the
programs, pomus Tor ramures w now course coumg guidennes. 1) Circle Class Use the Circle class from last week (private double variable radius, default constructor sets radius to zero, overloaded constructor sets it with a parameter, and methods setRadius, getRadius, getDiameter, getCircumference, and getSurfaceArea). Make sure that all getters are const. You can have all of your code in your header file and label the source file as intentionally blank. Create an overloaded + operator that returns a reference to a new circle that has a radius equal to the sum of the two input circles. Also implement an overloaded > operator that returns true if the Circle on the left is larger than the one on the right. These should be implemented as member methods, not friend methods. First test them with your own main program, after you have them using, use the provided driver to show that your class is properly defined. 2) Car Class Define a Person class with the following class variables string firstName, lastName and address. The default constructor should set them all to the empty string. It should have setters and getters for each variable. Create a Car class that has the private variables string make, string color, int year. It should also have driver that is a pointer to a Person. It should have a default constructor that creates a default person and sets the other variables to a Black, 1910, Ford. You should setters and getters for all variables, including a setDriver method that takes a firstName, lastName, and Address and updates the driver to those values (note, this does not create a new driver, it simply updates the existing driver). Finally, create an overloaded = operator (assignment), copy constructor, and
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
