static void Main(string[] args)
        {
            // only child class is instantiated in abstract class
            MyBook myBook = new MyBook("harry potter", "J.K.Rowling", 14);

            myBook.display();
        }
        private static void Main(string[] args)
        {
            string title     = Console.ReadLine();
            string author    = Console.ReadLine();
            int    price     = int.Parse(Console.ReadLine());
            Book   new_novel = new MyBook(title, author, price);

            new_novel.display();
        }
Example #3
0
        public 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();
        }