ActivityWindow、WindowManagerView、interface----ViewManagerLayoutInflaterComponentsActivity、Services、ContentProvider、Broadcast ReceiverActivity-------Ac...
分类:
移动开发 时间:
2014-07-25 13:50:31
阅读次数:
202
本文内容来自书上,不懂设计模式,只求混个眼熟。
三、抽象工厂模式
1. 动物管理系统的例子
public interface Animal{
public void eat();
}
public class Tiger implements Animal
{
public void eat(){
sysout.out.println("老虎会吃");
};
p...
分类:
其他好文 时间:
2014-07-25 11:15:01
阅读次数:
196
1 interface ViewController () 2 3 @property (weak, nonatomic) IBOutlet UITableView *tableView; 4 5 @end 6 7 @implementation ViewController 8 9 ...
分类:
其他好文 时间:
2014-07-25 02:24:44
阅读次数:
248
unit?u_des;
interface
uses
?SysUtils,Classes;
type
?TByte32?=?array[1..32]?of?Byte;
?TSData??=?array[0..63]?of?Byte;
?TBlock?=?array[0..7]?of?Byte;
?function??EnCryptStr(aStr...
分类:
其他好文 时间:
2014-07-25 00:05:54
阅读次数:
403
c++ 中.h 和 .cpp 根据java理解和区分...
分类:
编程语言 时间:
2014-07-24 23:18:23
阅读次数:
384
进入后台时,iOS给了我们10分钟的时间做一些事件处理。AppDelegate.h:1 #import 2 3 @interface AppDelegate : UIResponder 4 5 @property (assign, nonatomic) UIBackgroundTaskIdentif...
分类:
其他好文 时间:
2014-07-24 22:36:03
阅读次数:
179
捕获Java线程池执行任务抛出的异常Java中线程执行的任务接口java.lang.Runnable 要求不抛出Checked异常, public interface Runnable { public abstract void run(); } 那么如果 run() 方法中抛出了Runt...
分类:
编程语言 时间:
2014-07-24 21:57:42
阅读次数:
246
### Host Database## localhost is used to configure the loopback interface# when the system is booting.Do not change this entry.127.0.0.1 localhost255....
分类:
其他好文 时间:
2014-07-24 21:47:13
阅读次数:
553
给一个已有的类添加 category@interface ClassName (CategoryName)- (NSString *) Nothin_additionalMmethod;@end可以在category中给类添加扩展方法category通常声明在单独的.h文件中,实现category在...
分类:
其他好文 时间:
2014-07-24 17:02:05
阅读次数:
212
package?com.sadhu;
import?java.util.*;
/**
接口
接口中不能有字段
所有的方法都是公共的
可以定义常量
接口是多继承的,一个类可以继承多个接口。
接口中不能有实现的方法。可以认为是纯的抽象类。
接口不能...
分类:
编程语言 时间:
2014-07-24 10:54:44
阅读次数:
227