-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainTest.java
More file actions
22 lines (16 loc) · 837 Bytes
/
MainTest.java
File metadata and controls
22 lines (16 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package me.day05.practice.Practice01;
public class MainTest {
public static void main(String[] args) {
Electronic SMonitor = new Electronic("Monitor", Company.SAMSUNG, AuthMethod.FACE);
Electronic IMac = new Electronic("Mac", Company.APPLE, AuthMethod.FINGERPRINT);
Electronic Gram = new Electronic("Gram", Company.LG, AuthMethod.PIN);
User user01 = new User("Kim", "1234qwer", "01012345678", "Kim@naver.com", 19950927, Gram);
User user02 = new User("Park", "qwer1234asdf", "01012345678", "Park@mail.com", 19920901, null );
IMac.setAuthMethod(AuthMethod.PATTERN);
Gram.setAuthMethod(AuthMethod.FACE);
user02.addElectronicDevices(SMonitor);
user02.addElectronicDevices(IMac);
System.out.println(user01);
System.out.println(user02);
}
}