Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b2c5de5

Browse files
author
harunpetekkaya21
authored
Create Main.java
1 parent 3328fb7 commit b2c5de5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

‎Composition/Main.java‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
public class Main {
2+
public static void main(String[] args) {
3+
Wall wall1=new Wall("West");
4+
Wall wall2=new Wall("Easst");
5+
Wall wall3=new Wall("South");
6+
Wall wall4=new Wall("North");
7+
8+
Ceiling ceiling = new Ceiling(12,55);
9+
10+
Bed bed=new Bed("Modern",4,3,2,1);
11+
Lamp lamp=new Lamp("Classic",false,75);
12+
Bedroom bedroom =new Bedroom("harun",wall1,wall2,wall3,wall4,ceiling,bed,lamp);
13+
bedroom.makeBed();
14+
bedroom.getLamp().turnOn();
15+
16+
}
17+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /