What is OOP?
Thinking in Objects.
What is Object-Oriented Programming?
Analogy: philosophy
OOP is not just code. It's a way of thinking.
Instead of writing a long list of instructions (Procedural), you model your software after real-world things (Objects).
- A Car object has wheels and an engine.
- A User object has a name and a password.
The Four Pillars
OOP stands on four massive pillars. If you understand these, you understand OOP.
- Encapsulation: Keeping secrets.
- Inheritance: Passing down traits.
- Polymorphism: Many forms.
- Abstraction: Hiding complexity.
We will explore each of these in the next lessons!
Up Next
Classes and Objects