[. 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