parent
d037e5bd13
commit
ecc7f217ee
Binary file not shown.
@ -0,0 +1,17 @@
|
||||
package edu.eurasia.Interface;
|
||||
|
||||
public class USBTest {
|
||||
public static void main(String[] args) {
|
||||
// 1. 创建电脑对象
|
||||
Computer computer = new Computer();
|
||||
|
||||
// 2. 连接USB设备
|
||||
computer.add(new UMouse());
|
||||
computer.add(new UMic());
|
||||
computer.add(new UKeyBoard());
|
||||
|
||||
// 3. 开机/关机测试
|
||||
computer.powerOn();
|
||||
computer.powerOff();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue