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