static void RunAbstractClasses() { var title = Console.ReadLine(); var author = Console.ReadLine(); var price = Int32.Parse(Console.ReadLine()); var newNovel = new MyBook(title, author, price); newNovel.Display(); }
static void Main(string[] args) { var reader = new InputReader(false); string title = reader.NextString; string author = reader.NextString; int price = reader.NextInt; reader.Close(); Book book = new MyBook(title, author, price); book.Display(); }