0PricingLogin
Dart Academy · Lesson

Abstract Classes and Abstract Methods

Define what subclasses must implement.

What Abstract Means

An abstract class is a blueprint you can describe but never create directly. It exists to be extended, not instantiated on its own.

Marking a Class Abstract

You add the abstract keyword before class. This tells Dart the class is incomplete and meant to serve as a shared base.

abstract class Shape {
  double area();
}

All lessons in this course

  1. Abstract Classes and Abstract Methods
  2. Implicit Interfaces and implements
  3. Polymorphism Through Shared Types
  4. Composition Over Inheritance
← Back to Dart Academy