if i have a parent class ( class PARENT)
that is full of pure virtual functions
and then another class (class TEEN) that inherits from that class which also contains a few virtual functions and a few normal functions, and then finally have a class (class CHILD) that inherits from TEEN. does class CHILD have to implement the virtual functions that were listed in both PARENT and TEEN?
and does TEEN have to implement the functions from PARENT or not?
Code://an example of what i mean
class PARENT {
public:
virtual void func1() {};
virtual void func2() {};
virtual void func3() {};
};
class TEEN : public PARENT{
public:
//do i add all the virtual functions from PARENT here?
// void func1(); or virtual void func1();
// void func2(); or virtual void func2();
// void func3(); or virtual void func3();
void func4();
void func5();
virtual void func6();
virtual void func7();
};
class CHILD : public TEEN {
public:
//and so in here which functions need to be implemented?
};