- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 java 设计模式 学习分享(持续更新...)
开闭原则ocp 概述 是指一个软件实体如类、模块和函数应该对 扩展开放,对修改关闭。所谓的开闭,也正是对扩展和修改两个行为的一个原则。强调 的是用抽象构建框架,用实现扩展细节。可以提高软件系统的可复用性及可维护性。开闭原则,是面向对象设计中最基础的设计原则。它指导我们如何建立稳定灵活的系统。 个人理解 不对原有的接口进行改变,继承该类并Overriding的想要修改的具体方法使其达到新要求 重点是...
2019-11-20 22:03:37
235
原创 Class类中getSimpleName和getName对比
public class ClassFields { public static void main(String[] args) throws IOException { Com1 com1 = new Com1(); System.out.println(com1.getClass().getName()); //test.Com1 ...
2019-12-04 21:32:51
308
原创 MAC for idea
*command + e* 打开最近浏览的文件 *command +p* 提示接口方法需要参数 *command + o* 快速寻找文件 *command + option + shift +c* 光标在那个位置就复制哪一个单词 *command + shift + u* 将大些全部转换为小写,或者将小写转换为大写 持续输出中...mac中存在问题可以一起交流 ...
2019-11-20 21:34:01
228
原创 layui--layer.open参数传递问题
1、第一种方式 /** function layer_show(title,url,data,w,h){ if (title == null || title == ‘’) { title=false; }; if (url == null || url == ‘’) { url=“404.html”; }; if (w == null || w == ‘’) { w=800; }; if (h ...
2019-04-04 21:44:38
22707
6
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅