📜  在 js 中扩展 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:56.148000             🧑  作者: Mango

代码示例1
The extends keyword is used to create a child class of another class (parent). 
The child class inherits all the methods from another class. Inheritance is 
useful for code reusability: reuse properties and methods of an existing class 
when you create a new class.