Nội dung text DAY 1 - OOPS Bootcamp (Intro).pdf
● ● ● DAY 1 - OOPS Bootcamp (Intro) ITSRUNTYM Day 1: Introduction to OOP, Classes, Objects, Constructors, this, Static vs Non-Static 1. What is OOP? (Object-Oriented Programming) Definition: OOP (Object-Oriented Programming) is a programming paradigm that organizes code using objects — instances of classes, which bundle data and behaviour together. Core Idea: Instead of writing code as procedures or functions (like procedural programming), you model your code around real-world entities — called objects. (Procedural programming at the end) Example from Real Life: Car is an object. It has data (color, speed, brand). It has behaviors (drive, brake, accelerate). Benefits of OOP: Benefit Description Modularity Code is divided into small, manageable pieces (classes). Reusability Classes can be reused across programs. Scalability Easier to add new features. Maintainability Changes are easier as each class handles its responsibility. Real-World Mapping Makes code more intuitive and readable.