Skip to content
skillbld
Day 9 of 14 30 minpublic / privateimplementsabstract

Add types to JavaScript classes. Declare typed properties, use public, private, protected and readonly, write parameter properties, implement interfaces, and use abstract classes for shared behaviour.

By the end of today you can

  • Declare typed class properties and constructors
  • Use public, private, protected and readonly modifiers
  • Shorten constructors with parameter properties
  • Make a class implement an interface
  • Use abstract classes and methods

What's inside

  • 5 sections
  • 2 diagrams and mind maps
  • 6 code examples you can run
  • 5-question quiz
  1. 1Typed properties
  2. 2Access modifiers
  3. 3Parameter properties
  4. 4Implementing interfaces
  5. 5Abstract classes

Sign in free to read this lesson

Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.

Sign in free
Day 9: Classes · TypeScript · SkillBld