示例#1
0
        public static void DisplayIPhone4S()
        {
            GSM gsm = new GSM();

            Console.WriteLine("APPLE IPHONE4S");
            Console.WriteLine(GSM.IPhone4S.ToString());
        }
示例#2
0
 public MobilePhone(string model, string manufacturer, string owner, double price, GSM phoneGSM)
 {
     Model        = model;
     Manufacturer = manufacturer;
     Owner        = owner;
     Price        = price;
     PhoneGSM     = phoneGSM;
 }
示例#3
0
 public MobilePhone()
 {
     this.Model        = null;
     this.Manufacturer = null;
     this.Owner        = null;
     this.Price        = 0;
     this.PhoneGSM     = null;
 }
示例#4
0
        public static void MakeCall(GSM gsm)
        {
            Console.WriteLine("Insert Date: ");
            string date = Console.ReadLine();

            Console.WriteLine("Insert Time: ");
            string time = Console.ReadLine();

            Console.WriteLine("Dialed Number: ");
            string dial_number = Console.ReadLine();

            Console.WriteLine("Insert Date: ");
            Int32 duration = Int32.Parse(Console.ReadLine());

            gsm.AddCall(new Call(date, time, dial_number, duration));
        }
示例#5
0
 public GSM[] ArrayGSM()
 {
     GSM[] GSM_Arr = new GSM[5];
     return(GSM_Arr);
 }