Amid the Lord tells you what an object-oriented

Source: Internet
Author: User

For the concept of object-oriented programming (OOP), I have not yet seen anyone who can interpret it more thoroughly than Steve Jobs. Steve Jobs never received formal engineering training, but he has a very clear idea of what he does and what he says, whether it's technology, design or art.

Back in 1994, Rolling Stone had an interview with Steve Jobs. In those days, object-oriented was still a very popular concept, and there were not many people who could understand and give practice, while jobs gave the public a definition of what was object-oriented.
Jeff Goodell:
Please explain in as concise a language as possible, what is object-oriented software?
Jobs:
The object is like a human being and a living life.
They have the knowledge to know how to accomplish the task; they have memories and can write down what happened. You interact with them not at the lower levels, but as we do now, interacting on a highly abstracted level.
Let me give an example to illustrate.
If I am your "laundry" object, you can give me the dirty clothes, and then tell me: "Please help me to wash these clothes!" ”。
//One object calls another object, the "Laundry" object provides a laundry method for external
And I happen to know where the best laundry is in San Francisco, and I can speak English and have dollars in my pocket. So I went out and hit a taxi and told the driver to take me to the laundry room in San Francisco. After I got there and washed my clothes, I came back here by car. I return the laundry to you and say, "Your clothes have been washed." ”。
//The implementation process of laundry method in the "Laundry" object
You don't know how I did it. You don't know where a laundromat is, you can speak French, or you don't have money in your pocket, you can't even get a car. But I know how to finish the task, and you don't need to know any details.
//"Laundry" object the implementation of the laundry method is not exposed, the outside world does not know, or do not need to know its specific implementation
All of these complex processes are hidden inside of me, and we can interact with each other in a highly abstract way, which is the object. They encapsulate complex processes internally, while externally presented interfaces are high-level, abstract.

The so-called object-oriented, is the function, attributes are highly encapsulated in an object, external exposure is always the simplest and most abstract

Amid the Lord tells you what an 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.