Question: in C++: Q1. Consider the following class specification and develop a derived class called Circle which inherit from the class Point The class Circle includes:
in C++:
Q1. Consider the following class specification and develop a derived class called Circle which inherit from the class Point
The class Circle includes:
- A constructor Circle( double r = 0.0, int x = 0, int y = 0 )
- A method void setRadius( double )
- A method double getRadius() const;
- A method double area() const;
- double radius as data member

Answer:
1 2 // Fig. 19.4: point.h // Definition of class Point #ifndef POINT_H #define POINT_H 3 4 5 6 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
