Discuss / JavaScript / Answer

Answer

Topic source

NotFatCat

#1 Created at ... [Delete] [Delete and Lock User]
class Cat extends Animal{
   constructor(name){
     super(name);
   }
   say(){
     return 'Hello, '+this.name+'!';
   }
}

  • 1

Reply