static void Main() { string inputModel = Console.ReadLine(); string inputManufucturer = Console.ReadLine(); int inputPrice = int.Parse(Console.ReadLine()); string inputOwner = Console.ReadLine(); string inputBatteryModel = Console.ReadLine(); int inputBatteryHoursIdle = int.Parse(Console.ReadLine()); int inputBatteryHoursTalk = int.Parse(Console.ReadLine()); int inputDisplaySize = int.Parse(Console.ReadLine()); int inputDisplayNumColors = int.Parse(Console.ReadLine()); MobilePhone gsmOne = new MobilePhone(inputModel, inputManufucturer, inputPrice, inputOwner, inputBatteryModel, inputBatteryHoursIdle, inputBatteryHoursTalk, inputDisplaySize, inputDisplayNumColors); BatteryCharacteristics.BatteryType one = BatteryCharacteristics.BatteryType.Li_ION; IPhone4S IphoneOne = new IPhone4S("Mitizaro"); IphoneOne.PrintIphone4S(); gsmOne.PrintMobilePhone(); GSMtest gsms = new GSMtest(); GSMtest.PrintGSMtest(); }
private void CreateGSM() { MobilePhone gsmTwo = new MobilePhone("3310", "nokia", 300, "fat Vonko", "Lol", 300, 30, 500, 2300); MobilePhone gsmThree = new MobilePhone("3320", "nokia", 300, "non-fat Vonko", "Lol", 300, 30, 500, 2300); MobilePhone gsmFour = new MobilePhone("3330", "nokia", 300, "vonko cannot be unfat (error 404)", "Lol", 300, 30, 500, 2300); gsmArray[0] = gsmTwo; gsmArray[1] = gsmThree; gsmArray[2] = gsmFour; }