Which of the following is NOT correct about virtual functions in C++? I. A…

DSSSB 2021

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

I. A virtual function must be a member of a class.

II. It can be accessed using an object pointer or reference.

  1. A.

    Only I

  2. B.

    Only II

  3. C.

    Both I and II

  4. D.

    Neither I nor II

Attempted by 1062 students.

Sign up free to check your answer

Sign up free

Explore the full course: Bpsc

Loading lesson…