Computer Science, asked by pushpatripathi1212, 5 months ago

Circle class is base class and circumference is derived class. The details of base
class are
Class
Intr
Circle(int x)
Void input()
Void show()
circle
int to store radius
constructor to initializer as x
to input radius
to display radius
Details of derived class circumference
Class
circumference
Float c
c to store decimal value
Void calcircum)
to calculate circumference as 2 * 3.14*r
Void show()
to display radius and circumference
Assume the base class is already defined. define the circumference class with
details of constructor(),calcirum() and show() .main() need not
be written​

Answers

Answered by anjumalik4128
0

Answer:

A constructor is a member function of a class which initializes objects of a class. In C++, Constructor is automatically called when object(instance of class) create. It is special member function of the class.

Similar questions