Programmers used Procedural Programming (POP) in the past, which led to messy code as programs grew bigger.Object-Oriented Programming (OOP) introduced Classes as blueprints for objects to group related data and actions together.OOP offers organized and safe data manipulation, code reusability, and easy modeling of real-world entities.While POP is suitable for small scripts, OOP is preferred for larger applications due to its ability to keep the code clean, safe, and manageable.