上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 29 下一页
摘要: 1.虚拟方法调用也叫动态绑定2.具体是什么用代码来说明Person类 1 package com.alibaba.com.miao; 2 3 public class Person { 4 5 protected String name; 6 protected int age;... 阅读全文
posted @ 2014-07-29 19:19 天天AC 阅读(646) 评论(0) 推荐(0)
摘要: 1.分屏启动Vim 1.使用大写的O参数来垂直分屏 vim -On file1 file2 ... 2.使用小写的o来水平分屏 vim -on file1 file2 ...注释:n表示数字,表示分几个屏2.关闭分屏 1.关闭当前窗口 Ctrl+W c 2.关闭当前窗口,如果只剩下最后一个了,则推出... 阅读全文
posted @ 2014-07-28 21:11 天天AC 阅读(626) 评论(0) 推荐(0)
摘要: 1.依赖倒置原则 A.高层次的模块不应该依赖于低层次的模块,他们都应该依赖于抽象。 B.抽象不应该依赖于具体,具体应该依赖于抽象。2.用UML图来说明一下:代码说明:(1)管理员接口1 package com.alibaba.com.miao;2 3 public interface IEmpl... 阅读全文
posted @ 2014-07-18 21:18 天天AC 阅读(512) 评论(0) 推荐(0)
摘要: 1.开闭原则(OCP)遵循开闭原则设计出的模块具有两个主要特征:(1)对于扩展是开放的(Open for extension)。这意味着模块的行为是可以扩展的。当应用的需求改变时,我们可以对模块进行扩展,使其具有满足那些改变的新行为。也就是说,我们可以改变模块的功能。(2)对于修改是关闭的(Clos... 阅读全文
posted @ 2014-07-13 18:50 天天AC 阅读(528) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2014-07-12 22:37 天天AC 阅读(213) 评论(0) 推荐(0)
摘要: 1 import java.lang.reflect.Field; 2 3 public class Main { 4 5 public static void main(String[] args) throws Exception { 6 7 Class cache = Inte... 阅读全文
posted @ 2014-07-11 22:31 天天AC 阅读(175) 评论(0) 推荐(0)
摘要: 1.进入这个网站https://sublime.wbond.net/点击Install now2.根据自己安装的Sublime text版本来选择,并复制下面的代码3.打开Sublime编辑器,快捷键Ctrl + · (Tab 键上面的键)并把代码复制到弹出的白色区域(红色框),并重启Sublime... 阅读全文
posted @ 2014-07-11 16:10 天天AC 阅读(205) 评论(0) 推荐(0)
摘要: 1.python的斐波那契数:1 def fab(max):2 n,a,b=0,0,13 while n<max:4 print b5 a,b=b,a+b6 n=n+17 8 fab(4)fab2.python求偶数(奇数可以推出,注意... 阅读全文
posted @ 2014-07-06 16:25 天天AC 阅读(168) 评论(0) 推荐(0)
摘要: 1.此次写这个用来强化知识点。 我用的编辑器是Microsoft Visual C++ 6.0(大家可以在网上下载),用的后台是MySQL(我用版本是mysql-5.5.37-win32);2.下面进行环境的搭建 MySQL的安装(网上有教程)和Microsoft Visual C++ 6.0(... 阅读全文
posted @ 2014-06-26 20:30 天天AC 阅读(3209) 评论(0) 推荐(0)
摘要: 1 # include 2 # include 3 # include 4 using namespace std; 5 void Sort(int a[],int b[],int c[],int n,int m) 6 { 7 int A=0, B=0, C=0; 8 while(... 阅读全文
posted @ 2014-06-19 15:35 天天AC 阅读(878) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 29 下一页