-
Notifications
You must be signed in to change notification settings - Fork 166
Expand file tree
/
Copy pathEntertainmentDevice.java
More file actions
51 lines (38 loc) · 960 Bytes
/
EntertainmentDevice.java
File metadata and controls
51 lines (38 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package me.premaseem.facade;
public class EntertainmentDevice {
}
class Nexus {
public void downloadmedia(String name) {
System.out.println("Searching the media ");
System.out.println("Making online payment ");
System.out.println("downloaded from Nexus " + name);
}
}
class Amplifier {
void powerOn() {
System.out.println("Power on Amplifier");
}
void powerOff() {
System.out.println("power Off Amplifer ");
}
void attachAmplifierForMusic() {
System.out.println("Attaching music amplification");
}
void attachAmplifierForHomeTheater() {
System.out.println("Attaching movie amplification ");
}
}
class Projector {
void powerOn() {
System.out.println("Power on Projector");
}
void powerOff() {
System.out.println("power Off Projector ");
}
void adjustProjectorForMovie() {
System.out.println("Attaching home theater mode");
}
void adjustProjectorForGame() {
System.out.println("Attaching game console ");
}
}