示例#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();
        }
示例#2
0
        static void Main(string[] args)
        {
            string  title  = Console.ReadLine();
            string  author = Console.ReadLine();
            decimal price  = decimal.Parse(Console.ReadLine());

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

            newNovel.Display();
        }