▲ Camp45
Sign inTry free for 7 days

Computer Science · Theme B: Computational thinking and problem-solving

B3.2 — Fundamentals of OOP for multiple classes

Computer Science · SL / HL · syllabus-mapped notes

  1. CS_B3.2.1

    Inheritance for code reusability

    Parent and child class hierarchies, and access to parent members under four modifiers.

    Full note — free

    This card is HL only. You must be able to explain and apply inheritance to promote code reusability. Code is required. Parent and child classes Inheritance sets up a hierarchical relationship: a child (sub) class extends a parent (super) class , reusing its attributes and methods and adding or extending functionality, so shared code is written once. Impact of access modifiers on inherited members public : inherited and accessible everywhere, including the child. protected : inherited and accessible inside the child class (and the same package). default (package-private): accessible only within the same package, so a child in another package cannot use it. private : not accessible in the child class; it stays usable only within the parent itself. class Animal: def __init__(self, name): self.name = name def speak(self): return "..." class Dog(Animal): # Dog inherits from Animal def speak(self): # reuses name, extends behaviour return self.name + " barks"

  2. CS_B3.2.2

    Modelling polymorphism

    Dynamic polymorphism via method overriding, and static polymorphism for efficiency.

    This card is HL only. You must be able to construct code that models polymorphism : one interface taking many forms, which contributes to code flexibility and reusability. Code is required. Dynamic polymorphism (method overriding) A subclass supplies its own version of a method already …

    Read the full note free for 7 days →

  3. CS_B3.2.3

    Abstraction and abstract classes

    Exposing essentials for modular code, and abstract classes as common interfaces.

    This card is HL only. You must be able to explain abstraction : exposing only the essential features of something while hiding unnecessary implementation detail. Significance for modular code Abstraction lets each module be used through a simple interface without knowing its internals, so code …

    Read the full note free for 7 days →

  4. CS_B3.2.4

    Composition and aggregation

    Building objects from components, and how the two has-a relationships differ.

    This card is HL only. You must be able to explain the role of composition and aggregation : designing an object out of smaller component objects, a "has-a" relationship. Aggregation : a loose has-a relationship in which the subcomponents can function independently of the aggregating …

    Read the full note free for 7 days →

  5. CS_B3.2.5

    Common design patterns

    Singleton, factory and observer, and the recurring problems they solve.

    This card is HL only. You must be able to explain commonly used design patterns : reusable, proven solutions to recurring programming challenges. Singleton : ensures a class has only one instance and provides a single global point of access to it. e.g. one shared …

    Read the full note free for 7 days →

This topic has 5 full notes in Camp45 — with flashcards, a quiz and Sherpa, the AI tutor, on every one. Try 7 days free →
Sherpa, your Camp45 mountain guide
Hi, I'm Sherpa — your IB mountain guide.
I take you from your material to the syllabus summit. Ask me anything, hand me your essay or your notes — I'll turn it into your system.
💬
Ask me anything
Any of the 26 subjects — I answer from the syllabus.
📝
Essay check
I grade your draft and flag what reads like AI.
📄
Upload your notes
Handout or textbook page → your own syllabus map.
🃏
Flashcards & decks
I turn any topic into a deck you can drill.
3 of 3 free questions — no sign-up.
📝 Check your essay before you hand it in
Sherpa grades it against the IB criteria and flags passages that read like AI — so you can fix them first.

Full notes + a tutor. Every subject, one payment.

Camp45 turns the syllabus into notes that give you exactly what the exam asks — so you study smarter, not harder.

Monthly

€19/mo

All the notes, cancel anytime

Go monthly
Most popular

Full-year access

€149

Every subject, paid once

Get full-year access

Both diploma years

€229

Both years, paid once

Get both years

Syllabus-exact notes

Every understanding statement written out in full — nothing more than the exam asks, nothing left out.

A tutor that answers from the syllabus

Ask anything and it answers from the exact points you are studying.

Every subject, one payment

All 26 IB subjects, SL & HL, covered by a single payment — no per-subject fees.

No credit card. Try the free Biology preview before you commit.