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(); }
public Dog(DogBuilder builder) { Name = builder.Name; Age = builder.Age; Owner = builder.Owner; }