OOP organizes computer code into objects. This is different from conventional programming, where programs are just a sequence of tasks.
The main idea is objects vs. tasks.
Example: Racing Video Game
Let’s say we’re programming a racing video game. There are several different cars in the game.
We can program an object called a “car.” The car object has a state and operations: The car’s state can include current speed…