Q. Which of the following is not correct for virtual function in C++?

  • (A) Virtual function is defined in base class.
  • (B) Virtual function should be accessed using pointers.
  • (C) Virtual function can be static.
  • (D) Must be declared in public section of class.
πŸ’¬ Discuss
βœ… Correct Answer: (C) Virtual function can be static.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
232
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
80%
Success Rate