Describe the principles of Object-Oriented Programming (OOP) and give a real-world example of how you applied polymorphism in a past project.