Abstract Class

An abstract class in TypeScript is a class that cannot be instantiated directly and is used as a base class for other classes.

Snippet:

abstract class Animal { abstract makeSound(): void; }

Example:

abstract class Shape { abstract getArea(): number; }