Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public void inicialization(CContent content, CTitle title, CAuthor author)
 {
     this.content = content;
     this.title   = title;
     this.author  = author;
 }
Exemplo n.º 3
0
 public CBook(CContent content, CTitle title, CAuthor author)
 {
     inicialization(content, title, author);
 }