I dont know how to explain to all of you in English.So I m going to show you my problem
Why do we write virtual in Final?Code:class Base { private: int x; public: Base(int xx){x=xx;} }; class Derived1:public Base { private: int y; public: Derived1(int xx,int yy):Base(xx) { y=yy;} }; class Derived2:public Base { private: int z; public: Derived2(int xx,int yy):Base(xx) { y=yy;} }; class Final:virtual public Deived1,virtual public Derived2 { };