make it work :( #include using namespace std; class…

Question Answered step-by-step make it work 🙁 #include using namespace std; class… make it work 🙁 #include using namespace std;class Circle {public:inline double circle() { radius = 1; }inline double circle(double r) { radius = r; }inline void setRadius(double r) { radius = r; }inline double getRadius() const { return radius; }inline double area() const { return 3.14 * pow(radius, 2.0); }inline void print() const { cout << "radius = " << radius << "area = " << area() << endl;}private:double radius;};class Shape {public:Shape(int capacity);~Shape(){};void addCircle(Circle c);Circle* getCircles() const { return circles; }int getNumberOfCircles() const { return numberOfCircles; }void print()const;Shape(const Shape& RHS);private:Circle* circles;int numberOfCircles;int capacity;};Shape::Shape(int capacity) {this->capacity = capacity;circles = new Circle[capacity];numberOfCircles = 0;}void Shape::addCircle(Circle c) {circles[numberOfCircles] = c;numberOfCircles++;}Circle* Shape::getCircles() const {return circles;}int Shape::getNumberOfCircles()const {return this->numberOfCircles;}Shape::Shape(const Shape&RHS) {cout << "Copy constructor executingn";this->capacity = RHS.capacity;this->numberOfCircles = RHS.numberOfCircles;this->circles = RHS.circles;}void Shape::print() const{cout << "Capacity: " << capacity;cout << ", Number of Circles: " << numberOfCircles << endl << endl;}int main(){//Shape object s1 and popula2e it with two circle objects. Print s1Shape s1(2);Circle c1, c2;s1.addCircle(c1);s1.addCircle(c2);cout << "S1: t";s1.print();//Shapes object s2 and populate it with three circle objects.  Print s2Shape s2(3);Circle c3, c4, c5;s2.addCircle(c3);s2.addCircle(c4);s2.addCircle(c5);cout << "S2: t";s2.print();//Shapes object s3 and initialize it with s2. Verify that the copy constructor is invoked when creating this third object. Print s3Shape s3(s2);cout << "S3: t";s3.print();//d. Add a new Circle object to s2. Print s2 and s3. Has s3 Changed?Circle c6;s2.addCircle(c6);cout << "S2: t";s2.print();cout << "S3: t";s3.print();}  this is original assignment:Image transcription textDefine the class Shape given in the UML diagrambelow. The Shape class is like the class Course in thisweek's lecture. [2pts] Shape Circles is a C... Show more... Show moreusing this class for circle: Image transcription textPlease use the class called Circle thatis introduced in Chapter 9 of thetextbook, you can use the ... Show more... Show more  Computer Science Engineering & Technology C++ Programming CSC 252 Share QuestionEmailCopy link Comments (0)