예제 #1
0
 public FacadeTeaCup makeACuppa()
 {
     FacadeTeaCup cup = new FacadeTeaCup();
        FacadeTeaBag teaBag = new FacadeTeaBag();
        FacadeWater water = new FacadeWater();
        cup.addFacadeTeaBag(teaBag);
        water.boilFacadeWater();
        cup.addFacadeWater(water);
        cup.steepTeaBag();
        return cup;
 }
예제 #2
0
        public FacadeTeaCup makeACuppa()
        {
            FacadeTeaCup cup    = new FacadeTeaCup();
            FacadeTeaBag teaBag = new FacadeTeaBag();
            FacadeWater  water  = new FacadeWater();

            cup.addFacadeTeaBag(teaBag);
            water.boilFacadeWater();
            cup.addFacadeWater(water);
            cup.steepTeaBag();
            return(cup);
        }
예제 #3
0
 public void addFacadeWater(FacadeWater facadeWaterIn)
 {
     facadeWater = facadeWaterIn;
 }
예제 #4
0
 public void addFacadeWater(FacadeWater facadeWaterIn)
 {
     facadeWater = facadeWaterIn;
 }