Answer the questions related to the following code: class X { public: void x1(); protected: void x2();
Fantastic news! We've Found the answer you've been seeking!
Question:
Answer the questions related to the following code:
class X
{
public:
void x1();
protected:
void x2();
};
class Y: public X
{
void y1();
protected:
void y2();
};
class Z : public Y
{
Public:
void z1();
};
main ()
{
X temp1; Y temp2; Z temp3;
}
- Name all member functions of all classes visible through temp1 in the main function.
- Name all member functions of all classes visible through temp2 in the main function.
- Name all member functions of all classes visible through temp3 in the main function.
Related Book For
Elementary Linear Algebra with Applications
ISBN: 978-0471669593
9th edition
Authors: Howard Anton, Chris Rorres
Posted Date: