Which of the following statement is not true for virtual functions?

81. Which of the following statement is not true for virtual functions?

  1. The virtual function must be members of some class
  2. The virtual function can be a static member
  3. Virtual functions are accessed by using an object pointer
  4. The virtual function can be a friend of another class

Answer: B) The virtual function can be a static member

Explanation:

Virtual function cannot be a static member.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.