static void Main(string[] args) { string content = "In this chapter, I will introduce information that is fundamental to" + " working with types and the common language runtime (CLR)."; Book book = new Book("CLR via C#", "Jeffrey Richter", content); book.Show(); Console.ReadKey(); }
static void Main(string[] args) { Book book = new Book("Анна Каренина"); book.Author = "Lev Tolstoy"; book.Content = "Pro Annu & Vronskoho"; book.Show(); Console.ReadKey(); }
static void Main(string[] args) { Title tbook = new Title(); Author abook = new Author(); Content cbook = new Content(); Console.WriteLine("Enter title: "); tbook.TitleBook = Console.ReadLine(); Console.WriteLine("Enter autor book: "); abook.AutorBook = Console.ReadLine(); Console.WriteLine("Enter content book: "); cbook.ContentBook = Console.ReadLine(); Book bbook = new Book(tbook, abook, cbook); Console.WriteLine("-------------------------------------------------"); bbook.Show(); }
/// <summary> /// Display Name book, author, content /// </summary> static void Main() { Title title = new Title(); title.Content = Console.ReadLine(); Author author = new Author(); author.Content = Console.ReadLine(); Contents content = new Contents(); content.Content = Console.ReadLine(); Book book = new Book(title, author, content); Book.Show(); }
static void Main(string[] args) { string bookTitle, bookAuthor, bookContent; Console.WriteLine("Введите автора: "); bookAuthor = Console.ReadLine(); Console.WriteLine("Введите название: "); bookTitle = Console.ReadLine(); Console.WriteLine("Введите краткое описание: "); bookContent = Console.ReadLine(); Book libraryBook = new Book(new Title { SetBookTitle = bookTitle }, new Author { SetBookAuthor = bookAuthor }, new Content { SetBookContent = bookContent }); libraryBook.Show(); Console.ReadLine(); }
static void Main(string[] args) { Book book1 = new Book("Three on the boat, exclude the Dog", "Jerome K. Jerome", "Awesome comedy story"); book1.Show(); Console.ReadKey(); }
static void Main(string[] args) { Book book = new Book(new Author("Natali"), new Title("Something"), new Content("something")); book.Show(); }