aimnova.
DashboardMy LearningPaper MasteryStudy Plan

Aimnova site navigation

Stay in the loop

Get the latest study resources and updates

New features, study tips and exam insights — straight to your inbox.

IB Diploma

  • IB Past Papers
  • IB Study Notes
  • IB Question Bank
  • IB Mock Exams
  • IB Revision

IB Subjects

  • IB Math AA
  • IB Math AI
  • IB Economics
  • IB Business Management
  • IB Physics
  • IB Biology
  • View all IB subjects→

IB Past Papers

  • IB Math AA HL Past Papers
  • IB Math AA SL Past Papers
  • IB Math AI HL Past Papers
  • IB Math AI SL Past Papers
  • IB Economics HL Past Papers
  • IB Economics SL Past Papers
  • IB ESS Past Papers
  • View all past papers→

Study Resources

  • Study Notes
  • Question Bank
  • Mock Exams
  • Flashcards
  • Revision Guide
  • Exam Skills
  • Command Terms
  • Grade Calculator
  • Exam Timetable 2026

Aimnova

  • Features
  • Pricing
  • For Schools
  • For Parents
  • About Us
  • Blog
  • Contact
aimnova.

AI-powered study platform for smarter revision, past-paper analysis and examiner-style feedback.

TermsPrivacyCookies·© 2026 Aimnova. All rights reserved.8afc4e3

Aimnova is not affiliated with or endorsed by the International Baccalaureate Organization (IB).

NotesComputer Science HLTopic 7.1Designing classes
Back to Computer Science HL Topics
7.1.24 min read

Designing classes (Computer Science HL)

IB Computer Science • Unit 7

Exam preparation

Practice the questions examiners actually ask

Our question bank mirrors real IB exam papers. Practice under timed conditions and track your progress across topics.

Start Practicing

Contents

  • Finding the classes in a description
  • Reading a UML class diagram
  • Designing well
  • Exam-style question
The big idea: The classes are already in the description — they are the things it keeps talking about.

The attributes are what it says about them. The methods are what it says they do.
The nouns-and-verbs method: Underline the nouns: candidates for classes and attributes.

Underline the verbs: candidates for methods.

Crude, and it gets a first draft right surprisingly often.

Free preview

This is the free notes preview

You're reading the free notes. Aimnova Pro unlocks the full study experience — and you can try it with your first topic free to keep:

  • FlashcardsLock in vocabulary and key terms with spaced repetition.
  • Practice questionsAnswer exam-style questions and get instant AI marking.
  • Mock exams & past-paper vaultSit full mocks and see exactly how examiners award marks.
  • Personalised study planA daily plan built around your exam date and weak areas.
Start Studying Free Full access to Aimnova Pro · cancel anytime

The UML box and what each part means. Step to 'The class' first.

Interactive diagram

Explore the labelled diagram, charts and maps for this topic in full study mode.

Claim your free topic

The three parts

  • Name at the top
  • Attributes in the middle: name and type
  • Methods at the bottom, with their return type
  • Always in that order

Visibility

  • - private — reachable only inside the class
  • + public — reachable from outside
  • Attributes are normally private
  • Methods are normally public

Relationships

  • A plain line joins classes that know about each other
  • A hollow triangle points at the class being inherited from
  • Numbers on the line show how many, as in an ERD
Underlined means static: A UML entry drawn underlined belongs to the class itself rather than to each object.

A count of how many objects have been created is written underlined, because there is only ever one of it.

Practice with real exam questions

Answer exam-style questions and get AI feedback that shows you exactly what examiners want to see in a full-marks response.

Try Practice FreeYour first topic is free to keep • No credit card required
1

One class, one responsibility

2

Methods that belong to the data

3

Inherit only for a genuine "is a"

4

Attributes private, methods public

Why design before coding: A class diagram is quick to draw and quick to change. Rewriting a class other classes already depend on is neither.

That is the argument the guide is making when it says UML aids effective design and planning.

How this is tested — you must identify sensible classes and put each method with the data it uses. It comes up two ways:

Paper 2 — working with code

  • Construct a class design or UML diagram, 4-6 marks
  • Identify classes and methods from a description
  • Explain a design decision

Paper 2 — the algorithmic-thinking question

  • Design from a description with no code required
  • Say why one arrangement is better than another
The classic trap: Using inheritance where the relationship is really has a. A Library has Books; it is not a Book. Ask "is a" out loud before drawing the triangle.
IB-style questionConstruct[6 marks]

A cinema books seats for screenings. Each screening shows one film in one room at a time, and customers book seats. Construct a class design.

Model answer plan

See the mark-by-mark plan — for / against / judgement, with marking guidance — in study mode.

Claim your free topic

Try an IB Exam Question — Free AI Feedback

Test yourself on Designing classes. Write your answer and get instant AI feedback — just like a real IB examiner.

what a UML class diagram shows. [2 marks]

Related Computer Science HL Topics

Continue learning with these related topics from the same unit:

7.1.1Fundamentals of OOP
7.1.3Static vs non-static
7.1.4Classes and objects
7.1.5Encapsulation
View all Computer Science HL topics

Improve your exam technique

Command terms, paper structure, and mark-scheme tips for Computer Science HL

Previous
7.1.1Fundamentals of OOP
Next
Static vs non-static7.1.3

20 exam-style questions ready for you

Students who practice on Aimnova improve their scores by 15% on average. Get instant feedback that shows exactly how to improve your answers.

Practice Now — FreeView All Computer Science HL Topics