public static void Test() { PoliceAlarm pAlarm = new PoliceAlarm(); PoliceLight pLight = new PoliceLight(); ICar car = new CarAdapter(pAlarm, pLight); car.alarm(); car.light(); }
public CarAdapter(PoliceAlarm alarm, PoliceLight light) { m_alarm = alarm; m_light = light; }