Beispiel #1
0
            static void Main(String[] args)
            {
                String title     = Console.ReadLine();
                String author    = Console.ReadLine();
                int    price     = Int32.Parse(Console.ReadLine());
                Book   new_novel = new MyBook(title, author, price);

                new_novel.display();
            }
        static void Main(string[] args)
        {
            Console.WriteLine("Enter the book title: ");
            String title = Console.ReadLine();

            Console.WriteLine("Enter the author's name: ");
            String author = Console.ReadLine();

            Console.WriteLine("Enter the price of the book: ");
            int  price     = Int32.Parse(Console.ReadLine());
            Book new_novel = new MyBook(title, author, price);

            new_novel.display();
        }