Skip to main content

3 docs tagged with "classes"

View all tags

Class basics

In this chapter, you learn the basics of how to write classes in TypeScript.

Classes and interfaces

Designing classes and interfaces in TypeScript. Explains information hiding (encapsulation) / single responsibility / keeping classes small / preferring composition over inheritance with Bad / Good comparisons. Also covers the ideas of cohesion and coupling.