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

In C++, virtual functions are used to

  1. create functions that can never be accessed
  2. enable the use of the same function call to invoke functions from different classes
  3. to make a base class abstract
  4. to create an array of base class pointers that can point to different functions



Answer: 
Option b: enable the use of the same function call to invoke functions from different classes

Explanation Here

Post a Comment

0 Comments