示例#1
0
 public Plane(Flyable flyable)
 {
     _flyable            = flyable;
     this.EngineSize     = 6000;
     this.NumberOfWheels = 8;
     _flyable.Fly("plane");
 }
示例#2
0
 public string Fly()
 {
     return(Flyable.Fly());
 }
示例#3
0
 public void PerformFly(string duckName)
 {
     Flyable.Fly(duckName);
 }