Example: Consider the following C++ class declarations Class a dpublic double x,y void f0; virtual void go class B: public a dpublic double z: void fO virtual void hoExample: Consider the following C++ class declarations: Class A {public: double x, y; void f(); virtual void g(); } class B : public A {public: double z; void f(); virtual void h(); }