Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Book book = new Book();

            Console.WriteLine("Введите автора книги: ");
            string author = Console.ReadLine();

            Console.WriteLine("Введите название книги: ");
            string title = Console.ReadLine();

            Console.WriteLine("Введите содержание книги: ");
            string content = Console.ReadLine();

            book.AddInfo(author, title, content);
            Console.WriteLine("Вы ввели: ");
            book.Show();

            Console.ReadKey();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Console.OutputEncoding = Encoding.UTF8;
            Console.WriteLine("Введите название книги:");
            Title title = new Title();

            title.title = Convert.ToString(Console.ReadLine());

            Console.WriteLine("Введите автора книги:");
            Author author = new Author();

            author.author = Convert.ToString(Console.ReadLine());

            Console.WriteLine("Введите описание книги:");
            Content content = new Content();

            content.content = Convert.ToString(Console.ReadLine());

            Book book = new Book(title, author, content);

            Console.Clear();

            book.Show();
        }