Why Object Oriented Programming?

Object-Oriented Programming (OOP) is used to create better, more intuitive representations of real-life objects in our code. Humans naturally think and understand the world in terms of objects, like cars, books, or people. OOP leverages this way of thinking by allowing programmers to model software based on these real-world concepts.

Basic OOP concepts:

  • Class: A blueprint for creating objects (example: cars)
  • Object: An instance of the class (example: a specific car created based on the blueprint)
  • Attributes: The characteristics of these objects (example: car's color, year of production, and model)
  • Methods: The actions or behaviors of the object (example: driving fast or honking the horn)




In order to save your progress and be able to pass to the next lesson you need to LOGIN

×