Summary
In this chapter, we quickly reviewed programming paradigms, including imperative, procedural, functional, and OO.
Then, we presented OOP principles, such as encapsulation, abstraction, classes and inheritance, interfaces, polymorphism, and composition. We also discussed the choice between composition and inheritance.
After that, we discussed UML and OO domain modeling. We saw what class diagrams look like and how they can easily present a design and help to prepare, discuss, and document domain models.
We also briefly reviewed how JavaScript inheritance works.
Afterward, we covered how TypeScript supports OO programming concepts and how to implement classes and interfaces in TypeScript.
We also saw how to define custom types and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access