TypeScript tutorialLesson 15Free preview
TS Classes
This lesson is part of TypeScript · All levels
Summary
Class TypeScript adds private, protected, public, and readonly access modifiers to the JavaScript class. The modifier controls who can touch a field while helping encapsulate. Legacy with extensions and super allows reuse of interclass code.
Key points
- Modificator: public, private, protected, readily
- Extends inheritance of the members of the parent class
- Running the parent constructor
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.