Engrain by ByteRush

TS.04.04 Mid-level

Classes in TypeScript

Comes up in: Low-level design

This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.

What it covers

  • implements
  • access modifiers (private vs #private)
  • parameter properties (not erasable)
  • abstract classes
  • override
  • class types are structural

Words you will know

access modifierabstract classimplements

What you will practise

  • type a repository interface + class

Interview questions this answers

  • What is the difference between TypeScript private and JavaScript #private?