在面向对象的过程中怎么实现继承的

class Person {
     constructor(){
         this.name = "Alley"
     }
     show(){}
 }


 class Man extends Person{
     constructor(){
         super();//super指的是父级
     }
 }

 var  p =new Man()
posted @ 2019-09-18 21:36  前端小菜鸟吖  阅读(271)  评论(0编辑  收藏  举报