Skip to content
Related Articles

Related Articles

UGC-NET | UGC-NET CS 2017 Dec 2 | Question 14

Improve Article
Save Article
  • Difficulty Level : Hard
  • Last Updated : 15 Mar, 2018
Improve Article
Save Article

Which of the following is not correct for virtual function in C++ ?
(A) Must be declared in public section of class.
(B) Virtual function can be static.
(C) Virtual function should be accessed using pointers.
(D) Virtual function is defined in base class.


Answer: (B)

Explanation: Virtual function is can’t be static in C++.
So, option (B) is correct.

Quiz of this Question

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!