Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. package SatyamCorp.company;
  2.  
  3. public class Main {
  4.  
  5. public static void main(String[] args) {
  6. // write your code here
  7. Wall wall1 = new Wall("left","red");
  8. Wall wall2 = new Wall("Right","yellow");
  9. Wall wall3 = new Wall("West","green");
  10. Wall wall4 = new Wall("East","grey");
  11. Ceiling ceil =new Ceiling(5,"blue");
  12. Bed BED = new Bed("single",6,2,1,2);
  13. Lamp lamp = new Lamp(5,"Incandescent");
  14. Bedroom bedroom = new Bedroom("Wham!",wall1,wall2,wall3,wall4,ceil,lamp,BED);
  15.  
  16. bedroom.makeBed();
  17. bedroom.getLamp().TurnOn();
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement