What is Object Oriented Programming?


Object Oriented Programming is a “Way of Programming” that goes by translating, at best, real life Objects into code. I know you didn’t understand this so I will explain further ahead using examples.

An example of a real life object would be a vehicle. Yeah So?! Well, to try and decompose the vehicle into different elements, we could notice that a car has it’s type (truck, car, train etc…) and then it has attributes (Speed, License, Number of passengers etc…). What else? The car also has functions (Drive forward, Drive backwards, Turn right, Turn left, Brake, etc…).

And as we said, Object Oriented Programming involves transforming these into computer code. How to do that? We need to focus on those 3 keywords. The type, attributes and functions.