Пример #1
0
 public Person ConstructPerson(IPersonBuilder pb)
 {
     pb.BuildHead();
     pb.BuildBody();
     pb.BuildFoot();
     return pb.BuildPerson();
 }
 public Person ConstructPerson(IPersonBuilder personBuilder)
 {
     personBuilder.BuildHead();
     personBuilder.BuildBody();
     personBuilder.BuildFoot();
     return(personBuilder.GetPerson());
 }
 public void BuildPerson()
 {
     _pb.BuildHead();
     _pb.BuildTorso();
     _pb.BuildFoot();
 }