Which statement is incorrect about virtual function.
A. They are used to achieve runtime polymorphism
B. They are used to hide objects
C. Each virtual function declaration starts with the virtual keyword
D. All of the mentioned
Answer: Option B
A. They are used to achieve runtime polymorphism
B. They are used to hide objects
C. Each virtual function declaration starts with the virtual keyword
D. All of the mentioned
Answer: Option B
A. Multilevel inheritance
B. Hierarchical inheritance
C. Multiple inheritance
D. Single inheritance
A. public
B. private
C. friend
D. protected
What is the process of defining a new class based on an existing class in C++ called?
A. Inheritance
B. Composition
C. Encapsulation
D. Polymorphism
Join The Discussion