OOPS
August 29, 2024OOPS
August 29, 2024OOPS
Question 65 |
Which of the following is not correct for virtual function in C++ ?
Must be declared in public section of class | |
Virtual function can be static | |
Virtual function should be accessed using pointers. | |
Virtual function is defined in base class |
Question 65 Explanation:
→ Virtual functions are called only for objects of class types, you cannot declare global or static functions as virtual.
Correct Answer: B
Question 65 Explanation:
→ Virtual functions are called only for objects of class types, you cannot declare global or static functions as virtual.
Subscribe
Login
0 Comments