The This in Java can only be used in dynamic methods, not in static methods
The self in OC can be used either in dynamic methods or in static methods
Description: This objective-c topic is a prelude to learning iOS development, and to
Note: This Objective-C topic is a prelude to iOS development. It also helps programmers with experience in object-oriented language development to quickly get started with Objective-C. If you have no programming experience or are not interested in
Look at the code:@implementation son:father-(ID) init{ = [Super init]; if (self) { } return to self ;}What is self and what is super ?In dynamic methods : Self stands for "object"; In static methods : Self stands for "class"; One
Some things mean nothing at any time, such as integers, and what you see is what it says. As with keywords, you can't use def,class these keywords as variable names, so when you see them, it's easy to know what they do. But there are a lot of things
The static keyword is described in a class where member properties and member methods are static, and where are the benefits of static members? Before we declare the "person" of the human beings, in the class "people" if we add a "human state"
As a pioneer in social media in China, Sina Weibo does not provide official APIs that are obtained using the keyword + time + region method. When we see that foreign scientific research results are based on social media data obtained by a keyword,
This problem occurs when I try to use pygraphviz to embed my c ++CodeI found it when I drew a binary tree. I found some materials for half a day. Here I will call several common C ++ calls
Python uses the boost. Python method to make a summary,
The article turns from
@implementation Son:father
-(ID) init{
self = [super init];
if (self) {
} return
self;
}
This is an ordinary to initialization method that invokes the Init implementation of the parent class before the
Inquisitive objective-c Runtime (1)-Self & Super-chun Tips
Chun TipsFocus on iOS development
Inquisitive objective-c Runtime (1)-Self & Super PrefaceAbout OBJECTIVE-C Runtime a good document: Understanding the OBJECTIVE-C RuntimeThe
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.