Explain a real-life example of polymorphism.
Polymorphism is a very important object-oriented concept. It means having more than one form. It can be understood with the help of a real-life example of a person who has different characteristics such as being a father, a brother and an employee at the same time. Having different characteristics can result in different roles and responsibilities and different behavior of the same person at the same time in different situations. Polymorphism works in a similar way in object-oriented programming.