O ' C Foundation first day oriented process and object oriented

Source: Internet
Author: User

1. OC will C's complex something simple

A. #import directive.

B. nslog function.

C. nsstring

D. BOOL

2. OC adds some object-oriented syntax based on C.

Process oriented object oriented. is to solve the problem of different ideas.

1). Put the elephant in the refrigerator.

A. Open the refrigerator door.

B. Put the elephant in the refrigerator

C. Close the refrigerator door.

Object-oriented.

1 refrigerators found. As long as this refrigerator has automatic door opening automatically close the elephant automatically.

2). The need to buy a computer

A. Determine the model according to your budget and needs. Find information.

B, RMBP 9288

C, to the top of the gang.

D. Find an Apple specialty store.

E. Bargain deal.

F. Happy completion of the transaction.

The emphasis is on: steps to achieve this requirement, every 1 steps are done by ourselves.

If every 1 steps is to do it yourself, then you will not professional will be a mistake.

For me, I am a 1 out-and-out performer.

Think about the problems that will arise in the middle.

How to ensure that the need to buy a computer is perfect to complete absolutely will not be cheated.

The second way to buy a computer.

Find 1 of computer experts.

For me, I just need to bring money and a computer player. All the rest of the things the computer experts do for us.

Never be cheated.

Emphasis: Computer master. All things are done by this professional person. It must be able to do well.

For me, I am a 1-proud conductor.

We have two ways of buying a computer. We all choose the 2nd kind why not choose the 1th kind?

3). Process-oriented is actually a way to solve the problem.

In the face of 1 requirements. Every 1 steps is my own to do this problem-solving thinking, we are called process-oriented solutions.

Object-oriented is another way of thinking about solving problems.

In the face of 1 requirements. Do not do, but to find 1 dedicated to do this thing to help me do, this problem-solving thinking we are called object-oriented.

4). Whether the process-oriented or object-oriented is a problem-solving idea.

No matter what the 1 ideas are, you can actually do it all in the first.

But the idea of thinking is the best.

3. Process oriented and object oriented in the code.

For example, to sort 1 arrays.

Use the bubble sort algorithm to sort by yourself.

This approach is called process-oriented.

Object-oriented approach: Find 1 people who specialize in sorting to help us platoon.

C language is a 1-door process-oriented language.

Process-oriented: In the face of 1 requirements. Every 1 steps are done in person. To do it yourself. This approach is called process-oriented.

Object-oriented: when encountering 1 requirements. Don't do it yourself, but find 1 people who do it to help us do it.

O ' C Foundation first day oriented process and object oriented

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.