Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Title title = new Title();

            title.someText = "Little prince";

            Author author = new Author();

            author.someText = "Antoine de Saint-Exupery";

            Content content = new Content();

            content.someText = "Charper_1.....";

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

            title.Show();
            author.Show();
            content.Show();
            Console.ForegroundColor = ConsoleColor.White;
        }
Exemplo n.º 2
0
 public void Show()
 {
     title.Show();
     name.Show();
     content.Show();
 }
Exemplo n.º 3
0
 public void Show()
 {
     author.Show();
     title.Show();
     content.Show();
 }