/** * 可打印接口 * 定义了设备的打印功能 */ public interface Printable { /** * 打印方法 */ void print(); }