Learning object-c Lessons in 51cto

Source: Internet
Author: User

First for the more lazy me, install the virtual machine is also more trouble, directly under the 51co client to learn object-c under Windows, but the conditions of the small partner or imac bar, convenient, but also useful. In the process of learning object-c, the sense of code seems messy, especially some @, and * and other symbols doped among them, for the total confusion of the code understanding, such as:

-(void) SetStatus: (int) status;

(void) is the return value of this method

SetStatus is the name of this method

(int) is a parameter type, status is a specific parameter name

And then write a class, here found that Object-c is C, similar, introduce a variety of header files

#import<function/function.h> But the Import keyword is the same as C if it is not found in the current directory, you need to

, the system header file lookup, with #import "Function.h", object-c Save format is ". M" as the suffix, there is a @interface, is used to describe the class, not to implement polymorphic tools and so on. In particular, when you do the program, you can not tell what to write, what should not write, where to write, whether it is necessary to repeat the writing and affirmation.

After studying this course in 51cto, I feel that I have made progress, and some of the books do not understand what can be heard here, thanks to all the teachers and staff of 51cto.



This article is from the "11718608" blog, please be sure to keep this source http://11728608.blog.51cto.com/11718608/1789387

Learning object-c Lessons in 51cto

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.