Professional KnowledgeHardIBPS SO IT

Which of the following about C++ virtual functions is correct?

  1. A. They enable runtime polymorphism via the vtable
  2. B. They are resolved at compile time
  3. C. They need no base pointer
  4. D. They cannot be overridden

Correct answer: A. They enable runtime polymorphism via the vtable

Calls through base pointers dispatch dynamically.

More IT Officer Professional Knowledge (IBPS SO) questions

Exams that ask this topic