C
cmk128
Hi
How can we force all the class A's subclass inherit all its
functions? Or how can we force class B to inherit function abc()?
thanks
from Peter ([email protected])
class A{
public:
virtual void abc();
};
class B
ublic A{
};
int main(){
return 0;
}
How can we force all the class A's subclass inherit all its
functions? Or how can we force class B to inherit function abc()?
thanks
from Peter ([email protected])
class A{
public:
virtual void abc();
};
class B
};
int main(){
return 0;
}