#include <iostream>
using namespace std;
class Point
{public:
Point(float a,float b):x(a),y(b){}
~Point(){cout<<"executing Pointdestructor"<<endl;}
private:
float x;
float y;
};
class Circle:public Point
{public:
Circle(float a,float b,floatr):Point(a,b),radius(r){}
~Circle(){cout<<"executing Circledestructor"<<endl;}
private:
float radius;
};
int main()
{Point *p=new Circle(2.5,1.8,4.5);
delete p;
return 0;
}