[. NET object-oriented programming fundamentals] (2) About object-oriented programming

Source: Internet
Author: User

[. NET Object-oriented Programming fundamentals ] (2) about object-oriented programming

First of all , object-oriented programming English object-oriented programming short for OOP

In layman's terms, it's the meaning of object programming.

So the question is, what is the object, not the object of "female friend", "Looking for object"? Of course, you can also understand that "female friends" is also a "object" of one.

Object-oriented objects, meaning that everything is an object

Professional explanation we just ignore it.

Only all object-oriented programming, because there was a process-oriented programming

Process-oriented-refers to the decomposition of the problem into steps, step by step to achieve

Object-oriented --is to divide the transaction of the problem into various objects, and to solve the problem by using the relationship between objects, object-oriented is easier to encapsulate the object and reuse the object because it divides the transaction into various objects. This is also the object-oriented characteristics (encapsulation, inheritance, polymorphism) after this.

To get a little clearer, for example:

For example, to solve the problem of working for a water meter manufacturing company, using object-oriented implementation

Break into Objects first

1. Get up. This is an object in which there are members (dressing, washing, brushing, eating)

2. On the road This is the second object, there are members (vehicles, routes)

3. To the post this is the third object, there are members (sign in)

4. Work This is the fourth object, but also the core object of the day to work, the object can be more complex, including more members (into the work, the completion of the work process, reporting work, etc.)

5. Off duty This is the fourth object, this object, there are members (vehicles and routes) this and go to work the same route, but the direction is different, here can be used to object-oriented point of reuse features.

An example of this is the use of object-oriented programming to complete a "water meter company work Super system"

==============================================================================================

back to catalog

==============================================================================================

[. NET object-oriented programming fundamentals] (2) About object-oriented programming

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.