摘要: 计算机的主要组成部分有:CPU硬盘内存 看到这里我们首先想到的是has a 的关系,所以我们需要定义一个CPU的接口,硬盘接口以及内存接口 CPU接口 public interface CPU { public String getBrand();//品牌} 硬盘接口 public interfac 阅读全文
posted @ 2020-05-10 14:49 GGlend 阅读(1050) 评论(0) 推荐(0) 编辑