//initialize the static iPhone GSM static GSM() { DisplaySize iPhoneDisplaySize = new DisplaySize(1136, 640); Display iPhoneDisplay = new Display(32000, iPhoneDisplaySize); Battery iPhoneBattery = new Battery("Samsung", 24, 24, BatteryType.LiIon); iPhone4S = new GSM("4S", "Apple", 1000000, iPhoneDisplay, iPhoneBattery); }
public Display(DisplaySize size) : this(null, size) { }
//constructor initializing all the properties public Display(int?numberOfColors, DisplaySize size) { this.NumberOfColors = numberOfColors; this.Size = new DisplaySize(size.Height, size.Width); }
public Display(DisplaySize size) : this(null, size) { }
//constructor initializing all the properties public Display(int? numberOfColors, DisplaySize size) { this.NumberOfColors = numberOfColors; this.Size = new DisplaySize(size.Height, size.Width); }