thanks for the response, but waht i meant was:
class parent
{
protected:
blah;
}
class child : public parent{
public:
bloop;
}
in this case, would i NEED to define constructors and destructors for the parent class? i don't plan to use the parent class in any situation, its only there for...
Hey, i was wondering, when we use inheritance, is there a need to created constructors and destructors for the parent class, or is it enough that we create them only for the child?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.