1 Star 0 Fork 0

切梦刀/java学习

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ConcrateSubject.java 393 Bytes
一键复制 编辑 原始数据 按行查看 历史
longcz 提交于 2021-10-11 09:06 +08:00 . init
public class ConcrateSubject extends Subject {
private int status;
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
@Override
public void notifyAll(Weather weather) {
// TODO Auto-generated method stub
if (status == 1) {//当status等于1的时候,表示发生变化
super.notifyAll(weather);
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/oklongmm/java-learning.git
git@gitee.com:oklongmm/java-learning.git
oklongmm
java-learning
java学习
master

搜索帮助