The _______ keyword is used to specify a class should not be instantiated directly, but only used as a base class.
- virtual
- abstract
- sealed
- interface
In C++, an "abstract" class is one that cannot be instantiated directly. It is intended to be used as a base class from which other classes are derived, and it may have one or more pure virtual functions.
Loading...
Related Quiz
- What is a potential risk of using recursion?
- The memory allocated for a struct is equal to the sum of the memory of its individual members, considering _______.
- Your team is developing a C++ application involving several classes with complex interrelationships and data handling. How can abstraction be effectively implemented to simplify the interactions between different class objects and the user?
- The _______ statement is used to prematurely exit a switch-case block.
- Which access specifier allows a class member to be accessible only within its own class and friends?