What does the ‘abstract’ modifier on a class method require?

TypeScript Associate Hard

TypeScript Associate — Hard

What does the ‘abstract’ modifier on a class method require?

Key points

  • Concrete subclasses must implement the method with the 'abstract' modifier
  • Abstract classes with abstract methods cannot be instantiated directly
  • This enforces a requirement for subclasses to provide an implementation
  • Helps in creating a consistent structure in class hierarchies

Ready to go further?

Related questions