iOS data types, functions object-oriented

Source: Internet
Author: User
Tags float double

Anything happens to solve a problem that has arisen before, or to solve a problem better. If a new thing does not have such a feature, it is meaningless to ask questions-learning methods
C language 1, the basic data type int float double CHAR2, if if else for while does while switch (logic) 3, function (easy to modify logic errors, will be logical chunked processing) void function () {}void fun ction (int A, int b) {A+b;} int function (int a, int b) {return a+b;} int function (int []) {return a+b;} Data type common attribute 1, can be declared as a variable to store data 2, can be passed as a function parameter 3, can be returned as a function return value
BOOL die=yse/no; NSObject *obj=nsobject *test (nsobject *obj,nsobject *obj) nsobject * Object Types in OC
Objective: To establish an object-oriented thinking ability to establish basic project requirement analysis ability in grammar learning
Basic grammar what is object-oriented object-oriented is more in line with human thinking patterns of software programming ideas simple extensibility good
What is an object that can represent a meaning independently
Weibo: Large specific transactions represent an object (as a whole object analysis) to solve: to go to Tiananmen Square to see the flag-raising ceremony 1, Alarm clock (object), car (subway, bus, bicycle, rental Out) (object) Do not care about the source of thirst for water 2, coke, water (object) want to listen to music 3, mobile phones Concert (subject) The exam is now ready to begin. 4, book, pen, paper, printer, tape, scissors
Sales Cell Phone: Propose solution phone color, screen size, memory settings (professional training)
Class: Is used to describe the object 1, need to solve the problem 2, the application of object-oriented thinking to solve the problem: Find Object 3, the class Description object class name (object name): iphone attributes (noun): color, screen size, internal storage size, operating system version, processor function (verb): about this machine, phone, Texting, taking photos 4, converting to OC Code 5, applying object storage data to solve problem 7.15

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

iOS data types, functions object-oriented

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.