December 2017
Beginner
372 pages
10h 32m
English
Classes have been some of the most sought-after features of TypeScript. Classes and interfaces are the cornerstones of writing object-oriented code. Object-oriented programming provides the following features:
In this section, we will look at classes in TypeScript and see how we can write code in an object-oriented fashion. We will start by looking at what classes are and how they are defined in TypeScript. Then, we will look at a special keyword called constructor, which is used to initialize the properties of a class. From there, we will look at how we can write and access the properties and methods of a class. To cement our understanding of classes, we will create ...
Read now
Unlock full access