摘要: 一、基本用法 1.设计两个类Bird、Dog 1 // Bird的声明 2 @interface Bird : NSObject 3 { 4 @public 5 int weight; 6 } 7 - (void)eat; 8 @end 9 // Bird的定义10 @implem... 阅读全文
posted @ 2015-01-18 14:45 Janlor 阅读(198) 评论(0) 推荐(0) 编辑