Jave's object-oriented __ Interview

Source: Internet
Author: User

Object-oriented features:

1. Object-oriented is a thought that conforms to the habit of thinking;

2. From the executor of the process, the commander of the object was converted;

3. Simplification of complex issues.

and process-oriented comparison, object-oriented is the process of the encapsulation of the object, solve the problem, just need to find the corresponding object can be, the object will do what you want it to do.

Example:

We have to eat, there are two ways: 1. Cook and eat at home; 2. Eat in a restaurant. Then at home to eat their own food is the process-oriented thinking, you want to eat, at home, what you want to do, the club wash vegetables, cut vegetables, stir fry, cooking what, this kind of from the beginning to do in order one of their own to do is the process-oriented way of thinking. Eating in a restaurant is an object-oriented way of thinking, in a restaurant, there are cooks to cook for you, there are waiters to pour water for you, you get rice, you eat, he will also give you clean, here, the chef, waiter is two objects, they have to cook, send rice kinetic energy, and for the commander of me, Just tell them what I want to eat, and they will follow your orders to do the corresponding meal. From two ways of eating, the object-oriented way of eating makes it easier for us to eat.

Interview Answer:

Object-oriented is a kind of thought, which is a kind of programming thought which accords with our thinking habit. It is characterized by the fact that, more than process-oriented, the executor becomes the conductor, which changes the way we think, and it can simplify complex problems. For example, for interviewers, you're using object-oriented thinking to solve problems, the company has a project, the inevitable need for someone to develop, if you want to interview the interviewer yourself to develop, of course, there is no problem, may be the need for a longer period of time, in order to improve efficiency, we need people to help , these people, have a professional programming ability and programming literacy, at this time, I am honored to be the person with this ability and quality, as the commander of you, just command me to do things, call my function can complete the task, I can create value for the company. This is the object oriented idea.

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.