Example #1
0
        public static void Main(string[] args)
        {
            DogBuilder dogBuilder = new DogBuilder("Azor");
            Dog        dog        = dogBuilder.SetAge(12).Build();

            Console.WriteLine(dog.Age.ToString() + dog.Name + dog.Owner);
            Console.ReadLine();
        }
Example #2
0
 public Dog(DogBuilder builder)
 {
     Name  = builder.Name;
     Age   = builder.Age;
     Owner = builder.Owner;
 }