摘要:
```mermaid classDiagram MatchmakingService <|.. RealMatchmakingService MatchmakingService <|.. MatchmakingProxy class MatchmakingService { +findPartne 阅读全文
posted @ 2024-11-07 22:05
徐星凯
阅读(14)
评论(0)
推荐(0)
摘要:
老是有事情打扰我学软考!!!烦死了!!!困死了!! 阅读全文
posted @ 2024-11-07 21:48
徐星凯
阅读(18)
评论(0)
推荐(0)
摘要:
[实验任务一]:手机功能的升级 用装饰模式模拟手机功能的升级过程:简单的手机(SimplePhone)在接收来电时,会发出声音提醒主人;而JarPhone除了声音还能振动;更高级的手机(ComplexPhone)除了声音、振动外,还有灯光闪烁提示。 类图: ```mermaid classDiagr 阅读全文
posted @ 2024-11-06 20:51
徐星凯
阅读(30)
评论(0)
推荐(0)
摘要:
```mermaid classDiagram class ChessPiece { <<abstract>> +String color +display(int x, int y) } class WhiteChessPiece { +display(int x, int y) } class 阅读全文
posted @ 2024-11-06 19:04
徐星凯
阅读(13)
评论(0)
推荐(0)
摘要:
package Tutorial12; // 定义各个硬件设备和软件的类 class Memory { public boolean check() { System.out.println("Memory self-checking..."); // 假设返回true表示自检成功 return t 阅读全文
posted @ 2024-11-05 21:43
徐星凯
阅读(11)
评论(0)
推荐(0)
摘要:
[实验任务一]:组合模式 用透明组合模式实现教材中的“文件夹浏览”这个例子。 package Tutorial10; abstract class FileSystemComponent { public void add(FileSystemComponent component) { throw 阅读全文
posted @ 2024-11-05 19:25
徐星凯
阅读(23)
评论(0)
推荐(0)
摘要:
感觉大题好简单,选择题有点不会~运气好的话应该能过吧~过不了也没事儿,毕竟没花多少时间复习,下面这里笑死我了 阅读全文
posted @ 2024-11-04 20:59
徐星凯
阅读(17)
评论(0)
推荐(0)
摘要:
评到校三好和国奖了,可是好多材料要填,要打印,要疯了~实验也没做~还要找时间补回来,还要复习软考~要死掉了~ 阅读全文
posted @ 2024-11-04 19:27
徐星凯
阅读(18)
评论(0)
推荐(0)
摘要:
用桥接模式实现在路上开车这个问题,其中,车可以是car或bus,路可以是水泥路或沥青路。 类图: ```mermaid classDiagram class Road { <<interface>> +drive() } class CementRoad { +drive() } class Asp 阅读全文
posted @ 2024-11-02 19:29
徐星凯
阅读(20)
评论(0)
推荐(0)
摘要:
实验8:适配器模式 本次实验属于模仿型实验,通过本次实验学生将掌握以下内容: 1、理解适配器模式的动机,掌握该模式的结构; 2、能够利用适配器模式解决实际问题。 [实验任务一]:双向适配器 实现一个双向适配器,使得猫可以学狗叫,狗可以学猫抓老鼠。 实验要求: 1. 画出对应的类图; ```merma 阅读全文
posted @ 2024-11-01 19:32
徐星凯
阅读(51)
评论(0)
推荐(0)
浙公网安备 33010602011771号