9 lines
151 B
TypeScript
9 lines
151 B
TypeScript
|
import { Dog } from "./dog";
|
||
|
import { Cat } from "./cat";
|
||
|
|
||
|
const d = new Dog('buster');
|
||
|
const c = new Cat('mittens');
|
||
|
|
||
|
d.make_sound();
|
||
|
c.make_sound();
|