Compare commits
1 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
ecc7f217ee | 1 month ago |
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