// public string WriteEverything() { StringBuilder stroitel = new StringBuilder(); stroitel.Append("The model is: ").Append(this.model).Append("\n"); stroitel.Append("The manufacturer is: ").Append(this.manufacturer).Append("\n"); if (this.price != null) { stroitel.Append("The price is: ").Append(this.price).Append("\n"); } if (this.owner != null) { stroitel.Append("The owner is: ").Append(this.owner).Append("\n"); } if (this.BatteryInfo != null) { stroitel.Append(Battery.WriteEverythingBattery()); } if (this.DisplayInfo != null) { stroitel.Append(Display.WriteEverythingDisplay()); } return(stroitel.ToString()); }