Preview
IB DP Computer Science — B3 Object-oriented programming — Fundamentals of OOP for a single class | SL | B3.1.1
📋 What You Will Learn
- Define the core OOP concepts: class, object, encapsulation, inheritance and polymorphism
- Model a real-world entity as a class with attributes (state) and methods (behaviour)
- Explain how each OOP concept contributes to managing complexity in software
- Evaluate the advantages and disadvantages of OOP for different programming scenarios
- Justify, with trade-offs, whether OOP is an appropriate paradigm for a given problem
🏭 Why This Matters A car factory does not design every car from scratch: it has one blueprint , and every car rolling off the line is a separate physical product built from it — same design, different colour, different registration plate. OOP works the same way: a class is the blueprint; each object is one concrete product with its own state.
Modelling Real-World Entities
- OOP models a problem as a collection of objects that hold