Beispiel #1
0
        static void Main(string[] args)
        {
            MobileDevice Nokia = new MobileDevice("Nokia", "Lumia 650", 99, "Mtel",
                                                  new Display(30, 10000), new Battery());

            //MobileDevice Samsung = new MobileDevice("Samsung", "S600", 199, "Globul",
            //    new Display(10, 10000), new Battery("Samsung LongLiveBattery", 20, 5));

            Console.WriteLine(Nokia);

            //Console.WriteLine(Samsung);

            Nokia.AddCall("0876253132", 120);
            Nokia.AddCall("0876253452", 22);
            Nokia.AddCall("0876245555", 42);
            Nokia.AddCall("0876356565", 52);
            Nokia.RemoveCall(1);
            Nokia.CallHistory();
            Nokia.AllCallsPrice();
            Console.WriteLine("Total Call Price: {0}", Nokia.AllCallsPrice());
        }