首页 > 其他 > 详细

self & this

时间:2017-08-10 00:56:48      阅读:213      评论:0      收藏:0      [点我收藏+]

对象:指向对象的首地址;

函数:代表了函数运行的主要上下文;

内部:在类的内部使用。

 

self

Within the body of a class method, self refers to the class object itself. You might implement a factory method like this:

+ (id)myClass {
    return [[[self alloc] init] autorelease];
}

self & this

原文:http://www.cnblogs.com/feng9exe/p/7337020.html

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