Question: Please read the following C++ program and answer the questions in the last pic. Answer the following questions based on the implementation given below: cilass

Please read the following C++ program and answer the questions in the last pic.

Please read the following C++ program and answer the questions in the

last pic. Answer the following questions based on the implementation given below:

cilass Member public: int ml = 0 protected: int m2 = 0;

private: int m3 = 0; } class Parent{ public: virtual void fl)

Answer the following questions based on the implementation given below: cilass Member public: int ml = 0 protected: int m2 = 0; private: int m3 = 0; } class Parent{ public: virtual void fl) const {cout 1(); // This 13 line number 7 pp->2 OFW This 18 line number a PP &pi // This is line number 9 pp->1(); // This is line number 10 pp->2(); // This is line number 11 } 5. What is the output of line number "8"? 6. What is the output of line number 10"? 7. What is the output of line number "11"? 8. "m.m2" is inaccessible in class "Child". True or False? 9. "c.m.ml" is inaccessible in function "E". True or False? 10. "p2" is inaccessible in class "Member". True or False? 11. "p2" is inaccessible in class "Chila". True or False? 12. "p3" is inaccessible in class "Child". True or False? 13. Changing the type "Parent" to "Child" in line number "3" causes a syntax error in function "s". True or False? 14. No constructor is called in line number "3" True or False? 15. Including the "int" attributes of the object "m" an object of the type "Child" takes 9 "int" values in memory. True or False

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!