一、泛型接口
interface Inter{
public void show(T t);
}
class InterImple implements Inter{//知道是字符串类型
public void show(String str){
System.out.println("show "+str);
}
}
class InterImple_2 implements Int...
分类:
编程语言 时间:
2014-10-23 06:50:07
阅读次数:
273
程序设计: 猫大叫一声,所有的老鼠都开始逃跑,主人被惊醒。(C#语言)要求: 1.要有联动性,老鼠和主人的行为是被动的。2.考虑可扩展性,猫的叫声可能引起其他联动效应。要点:1. 联动效果,运行代码只要执行Cat.Cryed()方法。 2. 对老鼠和主人进行抽象 1 public inter...
分类:
其他好文 时间:
2014-10-22 23:36:16
阅读次数:
256
IOC(Inversion of Control):控制反转。*其他解释:依赖注入、依赖反转……设计目标:简化JEE的研发工作,提供IOC容器,控制bean的生成、注入,解耦。看了网上的一些帖子、介绍,书籍中的一些剖析,都不是很了解IOC这个概念,于是找来这么段代码,直接从代码上去理解了。inter...
分类:
其他好文 时间:
2014-10-12 12:56:47
阅读次数:
150
在以前介绍IplImage结构的时候,有一个重要的参数——ROI。ROI全称是”Region Of Interest”,即感兴趣的区域。实际上,它是IPL/IPP(这两个是Inter的库)结构IplROI的实例。IplROI包含xOffset、yOffset、height、width和coi成员变量...
分类:
其他好文 时间:
2014-10-10 07:50:44
阅读次数:
236
1:关键字abstractdoimplementsprivatethrowboolean doubleimportprotectedthrowsbreak elseinstanceofpublic transientbyteextends int return truecasefalse inter...
分类:
编程语言 时间:
2014-10-09 13:26:23
阅读次数:
198
javax.servlet
Interface ServletContext
public interface ServletContext
Defines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type o...
分类:
其他好文 时间:
2014-09-29 12:36:41
阅读次数:
149
进程间通信,简单来说就是进程与进程之间进行消息的传递。进程就是一个正在运行的程序实体。进程间通信主要分为两大类:管道和系统IPC(inter-processor communication,进程间通信)管道又分为三种:1)普通管道(有两个限制:第一,单工通信;第二,只能在父子或者兄弟进程间通信)2)...
分类:
其他好文 时间:
2014-09-27 15:18:39
阅读次数:
204
Chapter 16 Auto layout: Programmatic Constraints1. The line of code regarding translating constraints has to do with an older system for scaling inter...
分类:
其他好文 时间:
2014-09-25 19:18:37
阅读次数:
332
转载自http://www.cnblogs.com/crazypebble/p/3439261.html一、类Class中的属性property 在ios第一版中,我们为输出口同时声明了属性和底层实例变量,那时,属性是oc语言的一个新的机制,并且要求你必须声明与之对应的实例变量,例如:@inter....
分类:
移动开发 时间:
2014-09-22 03:17:31
阅读次数:
324
/***********注解声明***************//** * 水果名称注解 * @author peida * */@Target(ElementType.FIELD)@Retention(RetentionPolicy.RUNTIME)@Documentedpublic @inter...
分类:
编程语言 时间:
2014-09-19 08:48:25
阅读次数:
309