import { Flys } from "./FlyingBehavior" ; export class Animal { public flyingType : Flys ; public tryToFly ( ) { return this . flyingType . fly ( ) ; } public setFlyingBehavior ( newFlyingBehavior ) { this . flyingType = newFlyingBehavior ; } }