static void Main(string[] args) { string Content = string.Empty; string Title = string.Empty; string Author = string.Empty; Console.Write("Введите Автора книги : "); Author = Console.ReadLine(); Console.Write("Введите название книги : "); Title = Console.ReadLine(); Console.Write("Введите краткое содержание книги : "); Content = Console.ReadLine(); CContent content = new CContent(Content); CTitle title = new CTitle(Title); CAuthor author = new CAuthor(Author); Console.WriteLine(new string('-', 50)); CBook book = new CBook(content, title, author); book.Show(); Console.ReadKey(); }
public void inicialization(CContent content, CTitle title, CAuthor author) { this.content = content; this.title = title; this.author = author; }
public CBook(CContent content, CTitle title, CAuthor author) { inicialization(content, title, author); }