static void Main(string[] args) { // Marine Unit unit = new Marine(new MoveLand(), new Attack()); unit.Move(); unit.Attack(); // Medic unit = new Medic(new MoveLand(), new NoAttack()); unit.Move(); unit.Attack(); // Wrath unit = new Wrath(new MoveSky(), new Attack()); unit.Move(); unit.Attack(); // Medic special attack unit = new Marine(new MoveLand(), new SpecialAttack()); unit.Move(); unit.Attack(); Console.ReadKey(); }