1. Object-Oriented Programming: PolymorphismPolymorphismChapter 10Chapter 10 2. 2What You Will LearnWhat is polymorphism?How to declare and use virtualfunctions…