When we covered inheritance, there were some questions about interfaces and abstract classes.
- What can you use them for?
- What are the advantages?
- When should you use them?
These are all great questions that are worth exploring. As the title suggests, “Polymorphism” is the object-oriented feature that helps answer these questions. It’s not an easy feature to grasp.
That’s why most of the article will be about an in-depth example. You’ll see the thought process involved with using it. This will help you understand it better so you can apply it to your own projects.