Classes
Although there is a lot to discuss about OOP, the word object stands out generally. However, the most important concept within OOP is probably the concept of classes because, without a class, we cannot have an object. But what is a class?
A class is the definition of an object. To achieve this definition, we must go through the process of abstraction. Abstraction is another of the most important concepts within OOP, since it is the process that allows us to know and better understand what an object is, and after the abstraction, we will then be able to create it.
Think of abstraction as trying to explain what a tiger is to someone who has never seen one. You wouldn’t go into every tiny detail, such as how many whiskers a tiger has or the exact number of stripes. Instead, you’d focus on the main characteristics that make a tiger a tiger – it’s a large, wild cat with orange fur and black stripes, sharp teeth, and it hunts for food. This process...