Enterprise Architect(EA) 是一个功能比较强悍的建模工具,本篇文章仅使用其 UML 建模功能,其他更多功能,可以Google。 一、简单梳理C#中类与类、类与接口、接口与接口的关系一、继承 (子类 : 父类、子接口 : 父接口) Is子类 : 父类abstract cla...
分类:
其他好文 时间:
2014-12-05 18:43:34
阅读次数:
310
一、利用Spring 自带的Listener(推荐)
在web.xml中配置如下
contextConfigLocation
/WEB-INF/classes/applicationContext.xml
classpath:spring/applicationContext.xml -->
org.springframew...
分类:
编程语言 时间:
2014-12-05 17:23:57
阅读次数:
102
Intent:
官方解释:
An intent is an abstract description of an operation to be performed. It can be used with startActivity to
launch an Activity, broadcastIntent to
send it to any interested Broadcas...
分类:
移动开发 时间:
2014-12-05 15:37:03
阅读次数:
237
>d:\program files (x86)\microsoft visual studio 11.0\vc\include\xrefwrap(431): error C2440: “return”: 无法从“void”转换为“bool” (..\Classes\HelloWorldScene.c...
分类:
其他好文 时间:
2014-12-05 14:07:07
阅读次数:
203
1 unit DateTimePicker; 2 3 interface 4 5 uses 6 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, 7 Dialogs, Co...
分类:
其他好文 时间:
2014-12-05 12:40:04
阅读次数:
292
一、定义享元模式:运用共享技术有效地支持大量细粒度的对象。解释:需要大量重复new一个对象时,使用享元模式可以让你减少对象的初始化,从而减小内存开销。太苍白了,理解的不到位,希望自己以后补充吧。二、UML类图及基本代码基本代码:public abstract class Flyweight {...
分类:
其他好文 时间:
2014-12-05 12:09:55
阅读次数:
265
1 unit TrafficLight3; 2 3 interface 4 5 uses 6 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, 7 Dialogs, Std...
分类:
其他好文 时间:
2014-12-05 12:09:51
阅读次数:
202
首先按下Win+R输入“regedit”打开注册表编辑器,然后逐级定位到“HKEY_CLASSES_ROOT\CLSID\{52205fd8-5dfb-447d-801a-d0b52f2e83e1}\shell\OpenNewWindow\command”。先右键“导出”这个项做备份,然后选择command的“权限”,选择“高级”,“所有者”将所有者改为当前用户,..
建立一个文本文件,取名为kill-svn-folders.reg(名字可以随便,扩展名由txt改为reg),把下面代码复制进去:WindowsRegistryEditorVersion5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN]@="DeleteSVNFolders"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder..
分类:
其他好文 时间:
2014-12-04 15:49:46
阅读次数:
146
package lianxi4; public abstract class Employee { private String name; private int number; private MyDate birthday;
public String getName() { return n...
分类:
其他好文 时间:
2014-12-04 00:55:23
阅读次数:
262