首页 > 其他 > 详细

OC中的 延展

时间:2016-03-05 09:04:08      阅读:227      评论:0      收藏:0      [点我收藏+]

#import <Foundation/Foundation.h>

@interface Student : NSObject

-(void)Dothing;

@end

 

#import "Student.h"

 

@interface Student ()

-(void)Sleep;

@end

 

#import "Student.h"

 

@implementation Student

-(void)Dothing

{

    NSLog(@"Dothing");

}

-(void)Sleep

{

    NSLog(@"Sleep");

}

@end

 

#import <Foundation/Foundation.h>

#import "Student.h"

//#import "Student_Sleep.h"

int main(int argc, const char * argv[])

{

    @autoreleasepool

{

        Student *stu=[[Student alloc] init];

        [stu Dothing];

        [stu Sleep];    

    }

    return 0;

}

 

OC中的 延展

原文:http://www.cnblogs.com/tmf-4838/p/5244068.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!