Basics
Challenges
Classes
Debugging
Events
External Files
Flow Control
Forms
Functions
Html Elements
Installation
Interfaces
Keywords
Modules
Namespaces
Operators
Reference Files
String
Types
In TypeScript, you can inherit another class just like you can in most OO languages.
In c#, you would denote an inherited class by the use of a colon like so: public class Rectangle : Polygon
.
In TypeScript, we do this with the extends
keyword.
As expected, you can access members of the base class in the derived class...but you cannot access members of other derived classes.