static void Main(string[] args) { Book B = new Book(); B.A = new Author(); B.C = new Content(); B.T = new Title(); B.A.author = "Bill"; B.C.text = "Today is a good day"; B.T.title = "My day"; B.Show(); Console.ReadKey(); }
static void Main(string[] args) { Console.WriteLine("Назва книги: "); Titles title = new Titles(); title.Content = Console.ReadLine(); Console.WriteLine("Автор книги: "); Authors author = new Authors(); author.Content = Console.ReadLine(); Console.WriteLine("Зміст книги: "); Contents content = new Contents(); content.Content = Console.ReadLine(); Book book = new Book(title, author, content); book.Show(); Console.ReadKey(); }