- Started reading Full-stack React TypeScript & Node. Revised TS basics and the writing OOP code with TS.
- Encapsulation, hiding away internal details, TS has the
private
key word - Abstraction, related to encapsulation. Hide away the internal implementation details and provide and public API.
- Inheritance, code reuse. JS uses prototypical inheritance so does not support inheritance from multiple “classes”. But with TS you can…
- Polymorphism, related to inheritance. Create an object that is set to be of any specfic type. hard to do with JS but easy with TS interfaces.
- Encapsulation, hiding away internal details, TS has the