码迷,mamicode.com
首页 >  
搜索关键字:interface method/field    ( 13706个结果)
interfaces
直接进入我们精彩的内容==接口与抽象类类似,都无法申明变量它们的区别与相似之处:Abstract Class Vs. InterfaceØInterfaces are very similar to abstract classes.ØC# doesn’t allow multiple inheri...
分类:其他好文   时间:2015-04-26 16:39:41    阅读次数:112
(行为型模式三)观察者模式
package com.modle; import java.util.Vector; import org.omg.CORBA.OBJECT_NOT_EXIST; /** * 观察者模式 * @author k560 * */ /*观察者接口*/ public interface Observer { /*观察到被观察者行为后执行的行为*/ void doSome(); ...
分类:其他好文   时间:2015-04-26 15:18:37    阅读次数:102
序列化Parcelable和Serializable接口的区别
?? 一、Parcelable和Serializable接口简介 1. Parcelable接口 Interface for classes whose instances can be written to and restored from a Parcel。 Classes implementing the Parcelable interface must also have a s...
分类:其他好文   时间:2015-04-26 12:28:38    阅读次数:203
思科(Cisco)IOS基本操作命令(二)
一、Cisco发现协议(CDP)Cisco发现协议(CDP,CiscoDiscoveryProtocol),可以收集相邻设备的硬件和协议信息,用于故障诊断和网络判断。1、获取CDP定时器和保持时间信息R0#showcdp#查看整个路由器的CDP信息R0#shcdpinterface#查看每个接口的路由信息2、设定CDP时间R0#cdptime60R..
分类:移动开发   时间:2015-04-26 01:39:36    阅读次数:249
JAVA_interface
分类:编程语言   时间:2015-04-25 16:23:05    阅读次数:105
initWithFrame方法
1.initWithFrame方法是什么?initWithFrame方法用来初始化并返回一个新的视图对象,根据指定的CGRect(尺寸)2.什么时候用initWithFrame方法?简单的说,我们用编程方式申明,创建UIView对象时,使用initWithFrame方法。1.使用 Interface...
分类:其他好文   时间:2015-04-25 16:22:32    阅读次数:131
(创建型模式三)抽象工厂模式
package com.eyugame.modle; /** * 抽象工厂模式 * * @author JYC506 * */ public class MyFactory implements IAbstractFactory { @Override public IProduct1 createIProduct1() { return new Product1();...
分类:其他好文   时间:2015-04-24 22:50:01    阅读次数:182
iOS开发之自定义一个单例
iOS开发之自定义一个单例这里我使用宏:// .h#define single_interface(class) + (class *)shared##class;// .m// \ 代表下一行也属于宏// ## 是分隔符#define single_implementation(class) \s...
分类:移动开发   时间:2015-04-24 22:27:09    阅读次数:214
工厂方法模式
package com.eyugame.modle; /** * 工厂模式 * @author JYC506 * */ public class Factory implements IFactory { @Override public IProduct createProduct() { return new Product(); } } interface I...
分类:其他好文   时间:2015-04-24 21:08:52    阅读次数:124
[WebService]之JWS_1
创建JWS项目步骤:1:创建接口2:创建实现类3:开启服务1:编写接口@WebServicepublic interface IMyService { public int add(int a,int b); public int minus(int a,int b);}...
分类:Web程序   时间:2015-04-24 20:53:31    阅读次数:142
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!