主题:【原创】JAVA和C#,武当和少林之争! -- Highway
An interface is like a class but has only empty declarations of its methods. The designer of the interface declares the methods that must be supported by classes that implement the interface and declares what those methods should do. Here is a Lookup interface for finding a value in a set of values:
interface Lookup {
/** Return the value associated with the name, or
* null if there is no such value */
Object find(String name);
}
delegate是啥就不知道了。
- 相关回复 上下关系8
在设计模式的上下文中 泰让 字135 2005-10-18 00:58:33
设计模式之一叫作“装饰”的 看看 字88 2005-10-18 01:18:03
😄delegate恐怕是你我编程时最常用的 看看 字346 2005-10-18 00:41:12
Excerpt from "The Java Programming Language" 4th Edition
好文 睡虫 字81 2005-10-17 23:19:10
😄Sun (of a bitch) said to M$ johny 字58 2005-10-18 00:23:10
😄再推. 图文并茂 四月一日 字0 2005-10-17 22:52:49
【建议】也是随便说说 2 看看 字716 2005-10-17 22:41:58