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

Which of the following statements is TRUE about virtual functions?

  1. A constructor cannot be a virtual function
  2. A virtual function in the base class must be defined, eventhough it may not be used
  3. They cannot be declared static
  4. All the above



Answer: 
Option d:All the above

Explanation Here

Post a Comment

0 Comments