2021年10月21日
摘要: 一、任务 实现一个双向适配器,使得猫可以学狗叫,狗可以学猫抓老鼠。 二、类图 三、代码 1、Java 1 package tutorial8; 2 3 public class Adapter implements Dog,Cat { 4 Dog dog=null; 5 Cat cat=null; 阅读全文
posted @ 2021-10-21 15:59 桑榆非晚柠月如风 阅读(25) 评论(0) 推荐(0) 编辑