Error:invalid new-expression of abstract class type XXX [How to Solve]

New an error is reported as follows:
error: invalid new expression of abstract class type XXX

Reason:
the subclass does not fully implement the pure virtual function of the parent class, that is, some functions in the parent class are not implemented in the subclass. The first line of error will prompt which function is not implemented.

Solution:
delete the pure virtual function not implemented in the parent class or implement it in the child class

Read More: