Real life example of Dynamic Polymorphism & Operator Overloading

Viewed 14845

This was asked to me in an Interview as I mentioned OOPS is my favorite subject.

Can anyone give some real life examples for Dynamic Polymorphism and Operator Overloading ?

I could only explain in terms of coding , like calculating areas of different shapes (virtual functions + overriding ) and adding of complex numbers or concatenation of strings (operator overloading) .

5 Answers
Related