Before we get into the concept of pure-virtual, it's improtant to conceptualize the idea of an abstract class.
Let's make our Animal class abstract!
Review Questions
The following are examples of questions similar to what you can expect to see on the next exam.
- What does making a method pure-virtual do? Means it MUST be overridden. (Makes the class abstract)
- What is the syntax for a pure-virtual function? virtual void DoSomething() = 0; //(Does not have to be void)