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

  1. LearnWhat, not how
  2. LearnAbstract classes and methods
  3. LearnAbstract classes in UML
  4. CodeAn abstract class in use
  5. CodeWhat is not allowed
  6. LearnA common interface
  7. CheckAbstract or concrete?
  8. CheckQuick check
  9. ExamWorked exam answer
  10. ReviewMistakes examiners see
  11. Exam practiceExam-style questions

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