类
- https://www.yuque.com/yincw/nt2t79/ovlgamwukvygcbcg
- ts
- 类 Classes
- 初始化/实例化
- 构造器 constructor() super() 继承属性
- this
- 初始化参数
- 命名构造方法
- 工厂构造方法
- 编译时构造方法
- 静态初始化块 state =
- 构造器 constructor() super() 继承属性
- 公有属性 prototype 继承方法
- 实例字段
- 实例方法 render()
- 实例只读方法
- 实例只写方法
- 静态字段 static defaultProps
- 静态方法 static getDerivedStateFromProps()
- 静态只读方法
- 静态只写方法
- 私有属性
- 私有字段
- 私有方 法
- 私有只读方法
- 私有只写方法
- 私有静态字段
- 私有静态方法
- 基本要素
- 封装(对象标识)
- 类 class
- 命名空间
- 继承(对象状态)
- 接口和抽象类
- 多态(对象行为)
- 扩展类和继承(单继承)/实现
- 装饰器/类修饰符
- 重载/覆盖
- 混入(多继承)
- 封装(对象标识)
- 初始化/实例化
- TypeScript Classes
- https://ts.nodejs.cn/docs/handbook/2/classes.html
- https://ts.nodejs.cn/docs/handbook/decorators.html
- https://ts.nodejs.cn/docs/handbook/mixins.html
- https://ts.nodejs.cn/static/TypeScript%20Classes-83cc6f8e42ba2002d5e2c04221fa78f9.png
- https://ts.nodejs.cn/static/TypeScript%20Interfaces-34f1ad12132fb463bd1dfe5b85c5b2e6.png
- https://ts.nodejs.cn/static/TypeScript%20Types-ae199d69aeecf7d4a2704a528d0fd3f9.png
- JavaScript Classes
- Dart Classes
- Prototype
- JavaScript
- TypeScript
- Dart