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

  1. LearnFrom requirements to a class
  2. LearnUML class diagram notation
  3. ExampleThe Player class as UML
  4. LabDesign a class
  5. CheckAttribute or method?
  6. LearnRelationships between classes
  7. CheckQuick check
  8. ExamWorked exam answer
  9. ExampleThe model answer as a diagram
  10. ReviewMistakes examiners see
  11. Exam practiceExam-style questions

Ends with 3 exam-style questions worth 9 marks, with a self-marking markscheme.