开水房
ASP.NET
随笔- 145  文章- 1  评论- 2 
博客园  首页  新随笔  联系  管理  订阅 订阅
08 2009 档案
C#中override重写与new隐藏的区别,以及C#与Java的override区别 转

摘要: C#比java多一个 new隐藏 的功能。C#中的override重写相当于java中没有关键字的方法重写。 所以java中方法是没有隐藏功能的。在C#中: override重写,是指对父类中的虚方法(标记virtual)或抽象方法(标记为abstract)进行重写,实现新的功能,它必须与父类方法的签名完全一致,而且与父类方法的可访问性也必须一致 new方法隐藏,是指在子类中重新定义一个签名与父类...阅读全文
posted @ 2009-08-21 10:12 白开水皮皮 阅读(73) | 评论 (0) 编辑
log4j PatternLayout

摘要: http://blog.csdn.net/Sherwin/archive/2007/11/30/1908650.aspx阅读全文
posted @ 2009-08-19 16:31 白开水皮皮 阅读(39) | 评论 (0) 编辑
创建classic 得到函数 调用函数

摘要: Class manager = null; try {//1.创建class manager = Class.forName(name); } catch (ClassNotFoundException e) { } Method oMethod = null; try {//2.得到函数 oMethod = manager.getMethod("getInstance", null); } ca...阅读全文
posted @ 2009-08-19 10:50 白开水皮皮 阅读(13) | 评论 (0) 编辑
Windows快捷键大全 转

摘要: Windows快捷键大全一、常见用法:F2           当你选中一个文件的话,这意味着“重命名”F3           当你在桌面上的时候是打开“查找:所有文件” 对话框 Windows键+E       打开资源管理器Windows键+F       打开“查找:所有文件”对话框Windows键+R       打...阅读全文
posted @ 2009-08-18 13:15 白开水皮皮 阅读(24) | 评论 (0) 编辑
abstract factory -- 创建相互关联的类

摘要: Function:Provide an interface for creating families of related or dependent objects without specifying their concrete classes. Participants:AbstractFactory(ContinentFactory) declares an interface for ...阅读全文
posted @ 2009-08-17 17:04 白开水皮皮 阅读(5) | 评论 (0) 编辑
template -- 自定义执行顺序固定的几个方法

摘要: Function:Lets subclasses redefine certain steps of an algorithm without changing the algorithm's structureActor:阅读全文
posted @ 2009-08-17 16:15 白开水皮皮 阅读(10) | 评论 (0) 编辑
singleton -- 创建static类型的对象

摘要: Function: Make sure that in an application exists only one instance of a class.Actors:阅读全文
posted @ 2009-08-17 14:13 白开水皮皮 阅读(5) | 评论 (0) 编辑
facade -- 对于有很多接口的提供一个简单的接口

摘要: Function:A facade is an object that provides a simplified interface to a larger body of code, such as a class library. A facade can:make a software library easier to use and understand, since the faca...阅读全文
posted @ 2009-08-14 16:53 白开水皮皮 阅读(5) | 评论 (0) 编辑
decorate -- 通过反复包含对像,并对已包含对象方法添加功能

摘要: Function:The decorator pattern can be used to make it possible to extend (decorate) the functionality of a class at runtime.Actors:FunctionInterface, BasicFunctionClass, decorator, concreteDecoratorSu...阅读全文
posted @ 2009-08-14 16:23 白开水皮皮 阅读(13) | 评论 (0) 编辑
command -- 把动作封装成类

摘要: Function: Decouple the object that invokers the operation, by creating class for operations.Actors:Client, Invoker, command, concreteCommand, receiverSummary:阅读全文
posted @ 2009-08-14 13:25 白开水皮皮 阅读(8) | 评论 (0) 编辑
javascript: change the content of table

摘要: 1.change contentvar table = document.getElementById("TableData1");var enab = document.getElementById("alr_"+alr_id).value;table.rows[tab_line].cells[0].innerHTML="<input type='checkbox' class='stan...阅读全文
posted @ 2009-08-13 08:59 白开水皮皮 阅读(26) | 评论 (0) 编辑
Adapter --连接连个不同接口

摘要: Function:Create a new interface(like a adapter or wrapper) between client and class of library. So when use another library, just need to modify the adapter without letting the client knows the change...阅读全文
posted @ 2009-08-12 16:29 白开水皮皮 阅读(10) | 评论 (0) 编辑
Visitor -- 对于相似对象全部添加相应的处理方法

摘要: 访问者 visitor的本质是创建若干个各个类型Element的子类SubElement,子类中提供visit(Vistior v)方法,因为SubElement知道自己的类型,所以可以在visit(v)方法中自己决定visitor调用哪个方法来处理SubElement.而不需要在Visitor中根据Element的类型来判断需要执行哪个方法 (instanceof)阅读全文
posted @ 2009-08-12 15:58 白开水皮皮 阅读(7) | 评论 (0) 编辑
UML 常用符号 -- 转

摘要: 类之间的关系 UML把类之间的关系分为以下5种. ● 关联实线箭头属性Assosication ● 依赖虚线箭头临时变量或参数 Dependency ● 聚集 实心/空心菱形箭头属性Aggregation/Composition ● 泛化实线三角继承Generalization ● 实现虚线三角接口实现Realization关联(Asso...阅读全文
posted @ 2009-08-12 14:47 白开水皮皮 阅读(439) | 评论 (0) 编辑

昵称:白开水皮皮
园龄:3年8个月
粉丝:0
关注:0

搜索

 

常用链接

  • 我的随笔
  • 我的评论
  • 我的参与
  • 最新评论
  • 我的标签

随笔分类(75)

  • AJAX(3)
  • ASP.NET(8)
  • design(1)
  • Design patterns(8)
  • hibernate(4)
  • html(6)
  • JAVA(6)
  • javascript(15)
  • JSP(1)
  • log4j(1)
  • multi thread(2)
  • net application(1)
  • Object oriented(1)
  • SQL(9)
  • struts2(6)
  • UML(1)
  • XML(2)

随笔档案(146)

  • 2011年12月 (1)
  • 2011年10月 (11)
  • 2011年8月 (2)
  • 2011年7月 (1)
  • 2011年6月 (3)
  • 2011年5月 (2)
  • 2011年1月 (1)
  • 2010年12月 (3)
  • 2010年11月 (12)
  • 2010年10月 (4)
  • 2010年9月 (1)
  • 2010年8月 (6)
  • 2010年7月 (14)
  • 2010年6月 (1)
  • 2010年5月 (2)
  • 2010年4月 (1)
  • 2010年3月 (1)
  • 2010年1月 (2)
  • 2009年12月 (4)
  • 2009年11月 (3)
  • 2009年9月 (1)
  • 2009年8月 (14)
  • 2009年7月 (1)
  • 2009年6月 (1)
  • 2009年5月 (1)
  • 2009年4月 (4)
  • 2009年3月 (11)
  • 2009年2月 (7)
  • 2009年1月 (1)
  • 2008年11月 (5)
  • 2008年9月 (1)
  • 2008年8月 (3)
  • 2008年7月 (7)
  • 2008年6月 (14)

精彩BLOG

  • ASP.NET前台
  • DaiWei的blog
  • javascript
  • kwklover
  • pattern
  • 老赵

最新评论

阅读排行榜

评论排行榜

推荐排行榜

Copyright ©2012 白开水皮皮