B3.2 Fundamentals of OOP for multiple classesB3.2.3
Abstraction in OOP — Abstract Classes and Methods
Explain the concept of abstraction in OOP
AHL≈ 50 minCommand term: ExplainPremium
In this lesson
- Explaining abstraction: showing what an object does while hiding how it does it
- Explaining abstract classes and abstract methods, and why an abstract class cannot be instantiated
- Using abstract classes to give subclasses a common interface
- Explaining how abstraction supports modular code
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
- LearnWhat, not how
- LearnAbstract classes and methods
- LearnAbstract classes in UML
- CodeAn abstract class in use
- CodeWhat is not allowed
- LearnA common interface
- CheckAbstract or concrete?
- CheckQuick check
- ExamWorked exam answer
- ReviewMistakes examiners see
- Exam practiceExam-style questions
Ends with 3 exam-style questions worth 9 marks, with a self-marking markscheme.