You cannot declare a variable as an abstract class. Usually, they are used to provide interfaces between concrete classes that implement the functionality, and the user of a library who we may not want to have access to how it was implemented.
Generally, abstract classes are going to be an advanced technique that is secondary to learning the basics of object-oriented programming in C++.
|