12 lines
241 B
TypeScript
12 lines
241 B
TypeScript
import {Animal} from './animal';
|
|
|
|
export class Dog extends Animal {
|
|
|
|
// override the method make_sound
|
|
public make_sound() {
|
|
// implement own functionality
|
|
console.log(`doggo ${this.name} says:`);
|
|
console.log('woof!');
|
|
}
|
|
}
|