IMan.ts
export interface IMan {
draw(): void;
}
Father.ts
import { IMan } from './IMan';
export class Father implements IMan {
/**
*
*
* @memberof Father
*/
public draw() {
console.log("Father::draw()");
}
}
Son.ts
import { Father } from './Father';
export class Son extends Father {
public draw() {
super.draw();
console.log("Son::draw");
}
}
First.ts
import { Son } from './children/Son';
import { Father } from './children/Father';
import { IMan } from './children/IMan';
function angle2radian(angle: number) {
return angle / 180 * Math.PI;
}
function radian2angle(radian: number) {
return radian / Math.PI * 180;
}
con