Пример #1
0
 public void GSMWithAllDetails()
 {
     Display someDisplay = new Display(45000,new DisplaySize(1024,768));
     Battery superBattery = new Battery("kon",1000,1000,BatteryType.NiMH);
     GSM megaPhone = new GSM("Super Phone", "Krypton", 750,someDisplay,superBattery);
     Console.WriteLine(megaPhone);
 }
Пример #2
0
 public Display(Display displayToCopy)
     : this(displayToCopy.NumberOfColors, displayToCopy.Size)
 {
 }