示例#1
0
        static void Main()
        {
            GSM gsm = new GSM("Lumia", "Nokia");

            gsm.AddCalls(DateTime.Now, "0889976484", 45);
            gsm.AddCalls(DateTime.UtcNow, "088956454", 23);
            gsm.AddCalls(DateTime.Now.AddHours(13), "0883076494", 5);

            gsm.TotalPrice(2);
        }
        static void Main()
        {
            GSM gsm = new GSM("Lumia", "Nokia");

            gsm.AddCalls(DateTime.Now, "0889976484", 45);
            gsm.AddCalls(DateTime.UtcNow, "088956454", 23);
            gsm.AddCalls(DateTime.Now.AddHours(13), "0883076494", 5);

            gsm.TotalPrice(2);
        }
示例#3
0
        static void Test()
        {
            GSM[] gsmArr = new GSM[3]
            {
                new GSM("Lumia ", " Nokia ", 850, " Pesho"),
                new GSM("Lumia925 ", " Nokia ", 450, " Gosho"),
                new GSM("3310 ", " Nokia ", 50, " Ivan"),
            };

            foreach (GSM item in gsmArr)
            {
                Console.WriteLine(item.ToString());
            }
            Console.WriteLine();
            Console.WriteLine("Apple phone: ");
            Console.WriteLine(GSM.IPhone4S);
        }
        static void Test()
        {
            GSM[] gsmArr = new GSM[3]
            {
            new GSM("Lumia ", " Nokia ", 850, " Pesho"),
            new GSM("Lumia925 ", " Nokia ", 450, " Gosho"),
            new GSM("3310 ", " Nokia ", 50, " Ivan"),
            };

            foreach (GSM item in gsmArr)
            {
                Console.WriteLine(item.ToString());
            }
            Console.WriteLine();
            Console.WriteLine("Apple phone: ");
            Console.WriteLine(GSM.IPhone4S);
        }
示例#5
0
 static GSM()
 {
     iPhone = new GSM("iPhone 4S", "Apple", 1000, "Will Smith",
                      new Battery("Apple", 12, 36, BatteryType.LiIon), new Display(7, 16000000));
 }
示例#6
0
 static GSM()
 {
     iPhone = new GSM("iPhone 4S", "Apple", 1000, "Will Smith",
         new Battery("Apple", 12, 36, BatteryType.LiIon), new Display(7, 16000000));
 }