Introduction to OOP

Why OOP?

Problems with Functional/Procedural Programming:

What is OOP?

Real-World Analogy

Student Rahul (Object)
├── Attributes: name, age, id, roll_no
└── Behaviors: study(), sleep(), bunk()


Classes and Objects

Basic Concepts