I know there are a few different ways to achieve polymorphism in c++.
I know of 3 ways to do this:
- by using inheritance (through the use of a pointer to a base class)
- by using virtual function
- by using abstract classes
During a technical discussion on the topic I was told I am missing something and was left hanging...hence I asked the question here.
Is there another way in c++ to to this or is something I said wrong?