转自:http://www.cnblogs.com/ArmyShen/archive/2012/09/04/2669809.html***接口是对方法的抽象,而对象是对类的抽象接口的规定:(1)接口(interface)定义了一个可由类和结构实现的协定(2)接口可以包含方法、属性、事件和索引器(3)...
??
The choice of whether to design your functionality as an interface or an abstract class can sometimes be a difficult one. An
abstract class is a class that cannot be instantiated, but must be inh...
RootViewController.m
#import "ModalViewController.h"
@interface RootViewController ()
@end
@implementation RootViewController {
ModalViewController *modalCtrl;
}
- (id)initWithNibName:(...
分类:
其他好文 时间:
2014-10-29 14:58:08
阅读次数:
169
RootViewController.h
#import "ModalViewController.h"
@interface RootViewController : UIViewController
RootViewController.m
@interface RootViewController ()
@end
@implementation RootViewContro...
分类:
其他好文 时间:
2014-10-29 14:57:57
阅读次数:
190
UIColor+Hex.h
#import
@interface UIColor (Hex)
+ (UIColor *) colorWithHexString: (NSString *) hexString;
+ (CGFloat) colorComponentFrom: (NSString *) string start: (NSUInteger) start length: (...
分类:
其他好文 时间:
2014-10-29 14:53:23
阅读次数:
230
相关类Executor,Executors,AbstractExecutorService,ExecutorService
Executor:整个线程池执行者宽肩的顶层接口。定义了一个execute方法,整个线程执行者框架的核心方法。
public interface Executor {
void execute(Runnable command);
}
ExecutorServ...
分类:
编程语言 时间:
2014-10-29 12:59:56
阅读次数:
147
本人最近收集了一下23钟设计模式的英文解释,分享如下。
--- Abstract Factory
Provides one level of interface higher than the factory pattern. It is used to return one of several factories.
--- Builder
Construct a comple...
分类:
其他好文 时间:
2014-10-29 00:23:22
阅读次数:
165
Package httpserves HTTP requests using any value that implementshttp.Handler:package httptype Handler interface { ServeHTTP(w ResponseWriter, r *Re...
分类:
Web程序 时间:
2014-10-29 00:06:07
阅读次数:
226
Package imagedefines theImageinterface:package imagetype Image interface { ColorModel() color.Model Bounds() Rectangle At(x, y int) color.Col...
分类:
其他好文 时间:
2014-10-28 23:49:25
阅读次数:
220
An error is anything that can describe itself as an error string. The idea is captured by the predefined, built-in interface type,error, with its sing...
分类:
其他好文 时间:
2014-10-28 21:36:35
阅读次数:
160