B3.1 Fundamentals of OOP for a single classB3.1.2
Designing Classes — Attributes, Behaviours and UML Diagrams
Construct a design of classes, their methods and behaviours
SL + HL≈ 55 minCommand term: ConstructPremium
In this lesson
- Identifying the attributes and behaviours a class needs from a description of the requirements
- Choosing data types, parameters and return types
- Drawing UML class diagrams with the correct notation for access and static members
- Recognising how UML shows relationships between classes
This lesson is part of Premium
Every topic has one free lesson. Premium unlocks every interactive lesson, the exam-style questions at the end of each one, and the rest of Praxis IB.
What's inside
- LearnFrom requirements to a class
- LearnUML class diagram notation
- ExampleThe Player class as UML
- LabDesign a class
- CheckAttribute or method?
- LearnRelationships between classes
- CheckQuick check
- ExamWorked exam answer
- ExampleThe model answer as a diagram
- ReviewMistakes examiners see
- Exam practiceExam-style questions
Ends with 3 exam-style questions worth 9 marks, with a self-marking markscheme.