package us.deans.pigs.api; import us.deans.pigs.base.AbstractAnimal; public class Pig extends AbstractAnimal { private String stuff = "nothing"; public Pig() { System.out.println("pig constructor..."); } public void gather(String stuff) { this.stuff = stuff; } public String brag() { return null; } public House buildHouse() { HouseFactory hFactory = new HouseFactory(); String order = "a " + this.stuff + " house"; House newHouse = hFactory.getMe(order); System.out.println("I just built " + order + ". Check it out!"); return newHouse; } }