public void Show() { Console.ForegroundColor = ConsoleColor.Red; ThisAuthor.Show(); Console.ForegroundColor = ConsoleColor.Green; ThisTitle.Show(); Console.ForegroundColor = ConsoleColor.DarkYellow; ThisContent.Show(); }
public override string ToString() { return(string.Format("Author: {0}\nTitle: {1}\nAmount of pages: {2}\nCost: {3}", ThisAuthor.ToString(), Title, Pages.ToString(), Cost.ToString())); }