Пример #1
0
        static void Main(string[] args)
        {
            Book book1 = new Book("A Tale of Two Cities", "Charles Dickens", "1859");

            book1.Display();

            BookTest book2 = new BookTest("House of Hades", "Rick Riordan", "2013");

            book2.Display();
        }
        static void Main(string[] args)
        {
            Book book_1 = new Book();

            book_1.Display();

            BookTest book_2 = new BookTest("Friends Not Masters - A Political Autobiography", "Mohammad Ayub Khan", "1967");

            book_2.display_2();

            Console.ReadLine();
        }
Пример #3
0
        static void Main(string[] args)
        {
            Book myBook = new Book();

            myBook.Title  = "Visual C#: How To Program";
            myBook.Author = "Deitel, Paul & Deitel, Harvey";
            myBook.Year   = 2017;
            myBook.Display();

            BookTest bt1 = new BookTest();

            bt1.Test();
        }
Пример #4
0
            static void Main(string[] args)
            {
                Console.WriteLine("Example Book Information:\n");

                BookTest myBook = new BookTest();

                myBook.Title  = "The Martian";
                myBook.Author = "Andy Weir";
                myBook.Year   = "2011";

                myBook.Display();

                /*Command which allows you close Window*/
                Console.WriteLine("\n \n Press the Enter Key to Close.."); // Command used to display closed message.
                Console.ReadLine();                                        // Command used to keep window open
            }