static void Main(string[] args) { try { string author = Console.ReadLine(); string title = Console.ReadLine(); decimal price = decimal.Parse(Console.ReadLine()); Book book = new Book(author, title, price); GoldenEditionBook goldenEditionBook = new GoldenEditionBook(author, title, price); Console.WriteLine(book + Environment.NewLine); Console.WriteLine(goldenEditionBook); } catch (ArgumentException ae) { Console.WriteLine(ae.Message); } }
static void Main() { var goldEdition = new GoldenEditionBook("Ruska ruletka", "Kamen Minkov", 9); Console.WriteLine(goldEdition.ToString()); }