Advertisement
slawea

Untitled

Sep 26th, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1.     public class ShopDirector
  2.     {
  3.         private IShopBuilder shopbuilder;
  4.  
  5.         public ShopDirector(IShopBuilder shopbuilder)
  6.         {
  7.             this.shopbuilder = shopbuilder;
  8.         }
  9.  
  10.         public void buildShop()
  11.         {
  12.             shopbuilder.BuildFloor();
  13.             shopbuilder.BuildRoof();
  14.             shopbuilder.BuildWall();
  15.         }
  16.  
  17.         public Shop getShop()
  18.         {
  19.             return shopbuilder.getShop();
  20.         }
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement