Exemple #1
0
        static void Main(string[] args)
        {
            var client = new Author();

            client.Nume    = "Maria";
            client.Email   = "*****@*****.**";
            client.Country = "Ro";

            var carte = new Book();

            carte.Nume  = "Prima carte";
            carte.Year  = 1999;
            carte.Price = 200;

            carte.Author = client;


            Console.WriteLine(client.AllDetails);
            client.Print();
        }
Exemple #2
0
 public void Print()
 {
     Console.WriteLine($"Book={this.Nume}- Year={this.Year}  Price={this.Price}");
     Author.Print();
     Console.WriteLine();
 }