NikePants
+ display():void
AdidasPants
return new NikeShoes();return new NikeClothes();return new NikePants();
Clothes
Shoes
AdidasFactory
+getShoes():Shoes+getClothes():Clothes+getPants():Pants
实现
NikeFactory
AdidasClothes
NikeClothes
Factory
return new AdidasShoes();return new AdidasClothes();return new AdidasPants();
Pants
AdidasShoes
NikeShoes