接口的成员特点 成员变量:默认是公共静态 构造方法:接口没有构造方法 成员方法:默认公共抽象 //接口成员特点 interface inter { int num1 = 1; int num2 = 2; int num3 = 3; void show();// 默认是public abstract,...
分类:
其他好文 时间:
2015-01-14 06:10:39
阅读次数:
164
Code:#import @interface Person : NSObject @property int age; @property double weight;@end@implementation Person- (NSString*)description { ret...
分类:
其他好文 时间:
2015-01-14 00:32:18
阅读次数:
306
[root@xenserver ~]# brctl --help Usage: brctl [commands] commands: addbr add bridge delbr delete bridge addif add interface to bridge delif ...
分类:
其他好文 时间:
2015-01-13 21:14:33
阅读次数:
378
一、接口与抽象类比较
二、例子
package com.wbf.interfaceAndabstract;
//抽象类A1, A2, A3
//至少包含一个抽象方法
//构造方法,抽象方法,普通方法,常量,变量
//抽象方法的修饰符只可以是public和protected, private是非法的
abstract class A1 {
abstract void hello1_1...
分类:
其他好文 时间:
2015-01-13 20:01:24
阅读次数:
181
DEMO程序说明提供了两个演示接口IBplOne=interface ['{E4C1C5FA-C598-4834-9111-26B52634068D}'] function Add(A,B:Integer):integer; function Sub(A,B:Integer):In...
分类:
其他好文 时间:
2015-01-13 17:24:40
阅读次数:
261
之前做项目的时候有用到环形进度条,先是在网上找了一下第三方控件,发现好用是好用,就是东西太多了,有点复杂,还不如自己写一个简单点适合自己用的。
先把自定义控件的效果图贴出来。
其实我写的这个控件很简单。索性就直接把源码贴出来吧。
.h文件的内容就是一些声明
#import
@interface ProgressView :
UIView...
分类:
移动开发 时间:
2015-01-13 16:09:46
阅读次数:
227
1 Tomcat配置JNDI资源
JNDI(Java Naming and Directory Interface),Java命名和目录接口。JNDI的作用就是:在服务器上配置资源,然后通过统一的方式来获取配置的资源。
我们这里要配置的资源当然是连接池了,这样项目中就可以通过统一的方式来获取连接池对象了。
配置JNDI资源需要到元素中配置子元素:
name:指定资源的名称,这个...
分类:
编程语言 时间:
2015-01-12 21:00:12
阅读次数:
183
定义了DbRepository:IRepository ,SimpleDbContext继承了DbContext, UnitOfWork:IUnitOfWork public interface IDbRepository where TEntity : class { //基础...
分类:
数据库 时间:
2015-01-12 20:59:33
阅读次数:
1336
/etc/hostname.interface:物理端口,里面包含一个主机名或主机的IP/etc/nodename:计算机名/etc/defaultdomain:主机域名/etc/defaultrouter:默认路由地址/etc/inet/netmasks:子网掩码
分类:
其他好文 时间:
2015-01-12 20:57:23
阅读次数:
169
#import #import "RQHAppDelegate.h"@interface MainTableViewController : UITableViewController{ NSMutableArray *_peoples; RQHAppDelegate *_appDele...
分类:
移动开发 时间:
2015-01-12 20:55:01
阅读次数:
152