Can you explain the concept of object-oriented programming and how you have applied inheritance and polymorphism in your past projects?