Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Chimney {
- public Chimney() {
- }
- }
- public class Elevator {
- public Elevator() {
- }
- }
- public class Carpet {
- public Carpet() {
- }
- }
- public class Wardrobe() {
- public Wardrobe() {
- }
- }
- public class Room {
- private Carpet carpet;
- private Elevator elevator;
- private Chimney chimney;
- private Wardrobe wardrobe;
- public Room() {
- this.carpet = new Carpet();
- this.elevator = new Elevator();
- this.chimney = new Chimney();
- }
- public getCarpet() {
- return this.carpet;
- }
- public setCarpet(Carpet carpet) {
- this.carpet = carpet;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement