1 Answers
Abstract Class
class chetan //abstract base class
{
private:
data-type d1;
data-type d2;
public:
virtual void spec()=0; //pure virtual class
};
class A : public chetan
{
public:
void spec()
{
//A definition….
}
};
class B : public chetan
{
public:
void spec()
{
//B definition
}
};
class C : public chetan
{
public:
void spec()
{
//C definitions
}
};