← 3.2 Object Oriented Programming Implementation
Association
Computer Studies · Grade 11 · about 40 minutes
Implement a simple association between classes.
Sign in to read this lesson
Lessons are for learners and teachers with an account. Browsing the curriculum — subjects, strands and what each sub-strand covers — stays open to everyone.
- 8 sections of explanation, worked examples and diagrams
- 1 practice task with hints and worked answers
- A quiz that marks itself as you go
- Your progress kept across every subject you take
Other lessons in this sub-strand
- Syntax of an OOP language
- Declaring a class
- Instance and static variables
- Visibility specifiers
- Constructors
- Methods
- Creating an object
- Using an object
- A class and object program
- Association
- Aggregation
- Composition
- Implementing class relationships
- Implementing abstraction
- Implementing encapsulation
- Implementing inheritance
- Implementing polymorphism
- Implementing the OOP principles
- Real-life program: pupil records
- Real-life program: bank account
- Real-life program: a library
- Testing and debugging OOP programs
- Best practices and documentation
- Reviewing OOP implementation