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

UGC NET 2017Modified — slightly modified from the official paper; see the solution

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

  1. A.

    May be declared in public section of class.

  2. B.

    Virtual function can be static.

  3. C.

    Virtual function can be accessed using pointers.

  4. D.

    Virtual function is declared in base class.

Attempted by 17 students.

Sign up free to check your answer

Sign up free

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs

Loading lesson…