1 Star 7 Fork 2

蔚蔚樱软件开发/AlgoHub

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
VisitorTest.java 682 Bytes
一键复制 编辑 原始数据 按行查看 历史
ljfirst 提交于 2022-10-31 23:58 +08:00 . feat: update
package DesignPattern.visitor;
import java.util.ArrayList;
import java.util.List;
/**
* @author 蔚蔚樱
* @version 1.0
* @date 2019-1-6 ����04:32:16
* @author-Email: micromicrohard@outlook.com
* @description:
* @URL:
*/
public class VisitorTest {
public static void main(String[] args) {
List<Accept> Plist = new ArrayList<Accept>();
Plist.add(new PositionWaiter("服务员", 2000));
Plist.add(new PositionManager("经理", 10000, 20));
Plist.add(new PositionWorker("工人", 5000, 30.56));
ServiceProvider sp = new ServiceProvider();
for (Accept p : Plist) {
p.acceptable(sp);
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/micromicrohard/algo-hub.git
git@gitee.com:micromicrohard/algo-hub.git
micromicrohard
algo-hub
AlgoHub
master

搜索帮助