当前位置: 首页 > news >正文

手机网站单页红帽linux安装wordpress

手机网站单页,红帽linux安装wordpress,网站多域名怎么做,互联网保险的特点1、正式协议的定义 protocol 协议名 父协议1, 父协议2{零个到多个方法定义} 一个协议可以有多个直接父协议#xff0c;但协议只能继承协议#xff0c;不能继承类 协议只有方法签名#xff0c;没有方法实现 2、实现协议 interface 类名 : 父类 协议1#xff0…1、正式协议的定义 protocol 协议名 父协议1, 父协议2{零个到多个方法定义} 一个协议可以有多个直接父协议但协议只能继承协议不能继承类 协议只有方法签名没有方法实现 2、实现协议 interface 类名 : 父类 协议1协议2…end 协议和java里面的接口差不多 如果要使用协议定义变量有如下两种语法 NSObject协议1协议2*变量 id协议1协议2 变量 optional关键字之后声明的方法可选实现 required关键字之后声明的方法必选实现 3、测试Demo 1)、FirstProtocol.h #ifndef FirstProtocol_h #define FirstProtocol_hprotocol FirstProtocol -(void)first; end#endif /* FirstProtocol_h */ 2)、SecondProtocol.h #ifndef SecondProtocol_h #define SecondProtocol_h protocol SecondProtocol -(void)second; end#endif /* SecondProtocol_h */ 3)、ThirdProtocol.h #import FirstProtocol.h #import SecondProtocol.h#ifndef ThirdProtocol_h #define ThirdProtocol_h protocol ThirdProtocol FirstProtocol, SecondProtocol -(void)third; end#endif /* ThirdProtocol_h */ 4)、DoProtocol.h #import Foundation/Foundation.h #import ThirdProtocol.h#ifndef DoProtocol_h #define DoProtocol_h interface DoProtocol : NSObject ThirdProtocol end#endif /* DoProtocol_h */ 5)、DoProtocol.m #import Foundation/Foundation.h#import DoProtocol.himplementation DoProtocol -(void)first {NSLog(this first method); } -(void)second {NSLog(this second method); } -(void)third {NSLog(this third method); } end 6)、main.m #import DoProtocol.h #import ThirdProtocol.h #import FirstProtocol.hint main(int argc, char * argv[]) {autoreleasepool {DoProtocol *protocal [DoProtocol new];[protocal first];[protocal second];[protocal third];NSObjectFirstProtocol *first [[DoProtocol alloc] init];[first first];idSecondProtocol second [[DoProtocol alloc] init];[second second];} } 4、运行结果 this first method this second method this third method this first method this second method
http://www.yutouwan.com/news/332842/

相关文章:

  • 网站登录页模板html网页设计代码范例
  • 徐州本地网站自己怎么做跨境电商
  • 北京移动官网网站建设怎么建设游网站主页
  • 建个什么网站各大门户网站怎么做推广
  • discuz做资讯网站seo优化招聘
  • 文化馆网站数字化建设介绍阜宁建设网站的公司
  • 长春火车站防疫要求好的策划方案网站
  • 网站建设与维护是什么内容?登录qq网页版
  • 平面毕业设计作品网站网站建设移动端
  • 哪个企业提供电子商务网站建设外包流量查询中国移动官方网站
  • 广州化妆品网站设计南阳公司注册
  • 做网站初中上海汽车设计公司名单
  • 简单做网站的价格wordpress同ip弹一次广告
  • 装修网站怎么做的好处上海工信部网站备案
  • 如何再网站上做免费广告词开发公司交房前期的各项准备工作
  • 徐州专业网站seo外贸网站怎么做外链
  • 南京模板做网站苏州网站优化找哪家
  • 100个免费货源网站wordpress 获取当前页面名称
  • 如何用html在公司的网站上添加栏目路径竞价托管外包代运营
  • 新郑郑州网站建设网上购物最便宜的网站
  • 中国软件公司有哪些seo服务平台选择
  • 建站服务建设工程教育网官方网站
  • 新市网站建设银锭网那个网站做的 好
  • 做素材网站赚钱吗wordpress悬浮电话插件
  • 网站建设辶首选金手指十五建设一个企业网站要多少钱
  • 台州网站建设技术外包后台管理系统页面模板
  • 合肥网站运营丹灶网站制作
  • 公司如何建设一个网站接外贸单的平台
  • 做网站哪个地方需要钱HTML转WordPress主题
  • 网站建设列表网杭州建设局