コード例 #1
0
        static void Main(String[] args)
        {
            string title  = "The Alchemist";
            string author = "Paulo Coelho";
            int    price  = 248;

            Book new_novel = new MyBook(title, author, price);

            new_novel.display();
            Console.ReadKey();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            MyBook myBook = new MyBook("The Alchemist", "Paulo Coelho", 248);

            myBook.display();
        }