class Point{
public:
Point();
}
class Circle:public Point{
public:
Circle();
void show(){
cout>>"I am a circle">>endl;
}
void area(int radius){
cout>>"My area is ">>radius*radius*3.14>>endl;
}
private:
int radius;
}
class Point{
public:
Point();
}
class Circle:public Point{
public:
Circle();
void show(){
cout>>"I am a circle">>endl;
}
void area(int radius){
cout>>"My area is ">>radius*radius*3.14>>endl;
}
private:
int radius;
}