Preview
IB DP Computer Science — B3 Object-oriented programming — Fundamentals of OOP for a single class | SL | B3.1.2
📋 What You Will Learn
- Derive classes, attributes and methods from an application's requirements
- Read and construct UML class diagrams: compartments, types, visibility markers
- Represent relationships between classes in UML to plan a design
- Translate a UML class diagram into skeleton code in Java and Python
- Justify design choices — why a given method or attribute belongs in a given class
📐 Why This Matters An architect draws floor plans before anyone pours concrete, because changing a wall on paper costs minutes and changing it in a built house costs thousands. A UML class diagram is the floor plan of a program: it lets you find design mistakes while they are still cheap to fix.
From Requirements to Classes
- Start from the application requirements — what the system must store and do — not from code.