Abstract Class in Typescript

  • Abstract class represents a general concept
  • We can't create an instance of an abstract class because there's still some details that need to be filled in in general.
  • Abstract class can have abstract methods, and then the abstract method must be implemented by concrete subclasses.

 

 

An Abstract Class

 

 

Concrete Class

 

 

 

Array of Abstract Class

 

 


Related Question