What is Object Oriented Programming?
Object Oriented Programming is a coding paradigm that organizes code around data, aka “objects”, rather than functions and procedures. OOP simplifies software development by enabling us to model any data that we need, and work with that data in a logical way.
OOP uses classes to define the data model, and provide simple, reusable blueprints for creating objects. By allowing us to model the world around us in an intuitive way, OOP vastly reduces software complexity, development time, and maintenance.
For instance, if you are building an application that manages a restaurant, you would have classes such as Restaurant, Menu, MenuItem, Beverage, Employee and Guest. Once you have the classes that map out the application, you can quickly associate, compare, update, collate, and analyze all the data in that model.
You can also map these objects to databases, and communicate with other services on the web using these objects in the form of JSON.