会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
aotuman
博客园
首页
新随笔
联系
订阅
管理
随笔分类 -
Objective-c
继承和多态
摘要:1 /*====================Animallei====================*/ 2 //1.创建抽象类 Animal 3 @interface Animal : NSObject 4 { 5 NSString *_eat; 6 } 7 //2.把子类都需要实现的方法抽取出来,创建eat方法,然后在.m文件实现该方法 8 -(void)eat...
阅读全文
posted @
2016-05-01 18:35
aotuman
阅读(149)
评论(0)
推荐(0)
公告