November 2018
Beginner
502 pages
10h 22m
English
Abstract classes are a special type of class that can only be inherited from and not instantiated. They are declared with the abstract keyword, as in the following example:
abstract class Product { name: string; unitPrice: number;}

class Food extends Product { constructor(public bestBefore: Date) { super(); }}
Read now
Unlock full access