C++ MQCs with Explanation (CHAPTER : POINTERS, VIRTUAL FUNCTIONS AND POLYMORPHISM )

Which of the following statements is FALSE?

  1. Address of a derived class object can be assigned to a base class pointer
  2. Teating the base class object as a derived class object is wrong
  3. Address of a base class object can be assigned to a derived class pointer
  4. A base class pointer cannot be used to access all the members of the derived class



Answer: 
Option b:Teating the base class object as a derived class object is wrong

Explanation Here

Post a Comment

0 Comments