Which keyword is used to prevent a class from being inherited in C++?
A. final
B. sealed
C. prevent_inheritance
D. noinherit
Answer: Option A
A. final
B. sealed
C. prevent_inheritance
D. noinherit
Answer: Option A
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