Question: class Circle { public: enum Color {UNDEFINED, BLACK, BLUE, GREEN, CYAN, RED}; Circle(int = 0, int = 0, double = 0.0, Color = UNDEFINED); void
class Circle { public: enum Color {UNDEFINED, BLACK, BLUE, GREEN, CYAN, RED}; Circle(int = 0, int = 0, double = 0.0, Color = UNDEFINED); void setX(int); void setY(int); void setRadius(double); void setColor(Color); int getX() const; int getY() const; double getRadius() const; Color getColor() const; private: int x; int y; double radius; Color color; };
Given the above code: Write the statement(s) necessary for a client program to define a pointer to a Circle object and assign it the address of an array of 100 Circle objects which has been dynamically allocated using the default constructor with the default null values.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
