# 面向对象

面向对象三要素

  • 封装
  • 继承
  • 多态

js 没有 类, 可以借助 ES6 class 语法糖来实现,顺便借助 TypeScript 来进行 protected private public