📄 abstraction.java
字号:
/*
* 项目名称 Pattern
* 包名称 com.niufish.pattern.bridge
*
* 文件名称 Abstraction.java
*
*/
package com.niufish.pattern.bridge;
/**
* 对抽象做出定义,并定义实现的引用
* <p>
* <a href="Abstraction.java.html"><i>View Source</i></a>
* </p>
* @author Kingfish
* @version 1.0
*/
public abstract class Abstraction {
/**
* 实现
*/
private Implementor _imp = null;
/**
* 与实现挂钩
* @param imp
*/
public Abstraction(Implementor imp){
_imp = imp;
}
protected void print(String str){
_imp.operationImp(str);
}
/**
* 操作
*/
public abstract void operation();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -