コード例 #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;
        }
コード例 #2
0
ファイル: Book.cs プロジェクト: zbaghdasaryan/Study_C_Sharp
 public void Show()
 {
     title.Show();
     name.Show();
     content.Show();
 }
コード例 #3
0
 public void Show()
 {
     author.Show();
     title.Show();
     content.Show();
 }