1234567891011121314151617 |
- import { Animal } from './Animal';
- import { capitalize as upper } from './utils';
- export class Cat extends Animal {
- constructor (name : string) {
- super(name);
- this.type = 'cat';
- }
- greet() {
- return super.greet()+" and I don't like you";
- }
- }
|