Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package SatyamCorp.company;
- public class Main {
- public static void main(String[] args) {
- // write your code here
- Wall wall1 = new Wall("left","red");
- Wall wall2 = new Wall("Right","yellow");
- Wall wall3 = new Wall("West","green");
- Wall wall4 = new Wall("East","grey");
- Ceiling ceil =new Ceiling(5,"blue");
- Bed BED = new Bed("single",6,2,1,2);
- Lamp lamp = new Lamp(5,"Incandescent");
- Bedroom bedroom = new Bedroom("Wham!",wall1,wall2,wall3,wall4,ceil,lamp,BED);
- bedroom.makeBed();
- bedroom.getLamp().TurnOn();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement