public WashingMachineFacade() { InValve = new InValve(); OutValve = new OutValve(); HeatingElement = new HeatingElement(); Drum = new Drum(); }
public void Wash() { InValve.open(); InValve.close(); HeatingElement.heat(); Drum.spin(); OutValve.open(); OutValve.close(); InValve.open(); InValve.close(); Drum.spin(); OutValve.open(); OutValve.close(); }