// Fields // Constructors public Fridge() { Coldstore = new Coldstore(); Freezer = new Freezer(); }
public Fridge(string name, Coldstore coldstore, Freezer freezer) : base(name) { this.Coldstore = coldstore; this.Freezer = freezer; }
public FridgeInfo(Coldstore coldstore, Freezer freezer) { Coldstore = coldstore; Freezer = freezer; }
public FridgeFabricatorInfo(Coldstore coldstore, Freezer freezer) { Coldstore = coldstore; Freezer = freezer; }
// Fields // Constructors public Fridge() { Coldstore = new Coldstore(); Freezer = new Freezer(); }
public Fridge(string name, Coldstore coldstore, Freezer freezer) : base(name) { this.Coldstore = coldstore; this.Freezer = freezer; }
public void CloseColdstore() { Coldstore.Close(); }
public void OpenColdstore() { Coldstore.Open(); }
public override void TurnOff() { base.TurnOff(); Coldstore.TurnOff(); Freezer.TurnOff(); }