you have to create a class contructor
class CIRCLE : public SHAPE
{
public:
CIRCLE() {
name="circle";
}
void display()
{
cout<<name;
}
};
2
solved How to set class member as constant? [closed]
you have to create a class contructor
class CIRCLE : public SHAPE
{
public:
CIRCLE() {
name="circle";
}
void display()
{
cout<<name;
}
};
2
solved How to set class member as constant? [closed]