Skip to content

Latest commit

History

History
9 lines (8 loc) 路 626 Bytes

2021-02-08.md

File metadata and controls

9 lines (8 loc) 路 626 Bytes
publish_date
2021-02-08
  • 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.