Пример #1
0
        //Overridden Abstract Method

        public override void printDetails()
        {
            Console.WriteLine("\n~~~Meeting~~~\n");
            Console.WriteLine("Person Details: ");
            person.Person_Details();
            Console.WriteLine("Meeting Title: " + Name);
            Console.WriteLine("Location: " + Location);

            //DateTime Extension Method (Print_DateTime())

            Console.WriteLine("Start Time-Date: " + Start_dt.Print_DateTime());
            Console.WriteLine("End Time-Date: " + End_dt.Print_DateTime() + '\n');
        }
Пример #2
0
        public override void printDetails()
        {
            Console.WriteLine("\n~~~Trip~~~\n");
            Console.WriteLine("Trip Title: " + Name);
            Console.WriteLine("Location: " + Location);
            Console.WriteLine("Start Time-Date: " + Start_dt.ToString());
            Console.WriteLine("End Time-Date: " + End_dt.ToString());
            Console.WriteLine("Trip Expense: " + Trip_Expense);
            Console.WriteLine("\nDocuments Required: \n");

            for (int i = 0; i < Docs.Count; i++)
            {
                Console.WriteLine("Document " + (i + 1) + ": ");
                Docs[i].Doc_Informatiom();
            }
        }