What is an abstract class in C++?
Show answer and explanation
An abstract class has at least one pure virtual function and cannot be instantiated directly. It can still own state, define constructors and concrete functions, and even provide a definition for a pure virtual function.
An abstract class has at least one pure virtual function and cannot be instantiated directly. It can still own state, define constructors and concrete functions, and even provide a definition for a pure virtual function.
Connect the conclusion directly to the type, lifetime, ownership, overload-resolution rule, or library contract present in the question. State implementation dependence or a violated precondition explicitly instead of merely guessing output.