Introduction to Object-Oriented Programming

Source: Internet
Author: User

In software development, the use of object-oriented programming is a long-term hanging strategy. First of all, we must be far-sighted, then carefully work, and finally complete software development tasks.

The idea of object-oriented programming is to adapt to the increasing complexity of software development. The workload of software development increases along with the increase of the software scale. The larger the software scale, the faster the workload of software development increases. With the traditional process-oriented programming method, the workload of developers is directly proportional to the workload of software development. Therefore, when the software scale is large, the workload of developers will be huge, as a result, the cost of software development increases sharply, which is not feasible for commercial software development. The complex requirements of software customers exist objectively and must be met. Therefore, the industry began to use object-oriented programming methods to reduce software development costs. [Yuan Yongfu http://www.cnblogs.com/xdesigner]

From a macro perspective, the biggest role of object-oriented programming is to split a complex software function into multiple simple software functions, then, various simple software functions are implemented at a low cost. Finally, modules are integrated to form a complete and complex software function to meet user needs. The policy is divided and surrounded by different attacks.

As shown in, the area of the Shadow part is the workload of software development. When the process-oriented software development method is adopted and the customer's requirements are complex, the software development workload will be very large, and the object-oriented software development method is used, developers can split complex customer needs into two simple customer needs, and then develop one by one, and finally integrate and implement the required functions. At this time, the software development workload is reduced by half, whether to use the correct method makes the comparison amazing. Therefore, the use of object-oriented software development methods to develop business software with complex customer needs at a low cost has become a reality.

From the perspective of the software development process, the object-oriented programming ideology forces a Software Abstract Step, forcing software developers to have a deep understanding and analysis of user needs, this increases the stability and regularity of the software development process.

From the perspective of implementation methods, object-oriented programming is more in line with people's understanding of objective things. Measure the test taker's knowledge about the customer's things. People intentionally or unintentionally classify and compare many things. [Yuan Yongfu http://www.cnblogs.com/xdesigner]

For example, after a lot of understanding, people abstract cars into motor vehicles with at least four wheels and two axles, while passenger cars are dedicated transport staff cars, A bus is a passenger car that anyone can pay. Therefore, the four objective things "Motor Vehicle-vehicle-bus" and the three derivative relationships constitute an understanding of the automobile. This recognition method features low learning costs and fast learning speed, and the reuse of knowledge is its biggest advantage.

Without such a classification and comparison method, a vehicle is defined as a motor vehicle with at least four wheels and two axles. A passenger car is a motor vehicle with at least four wheels and two axles dedicated transport personnel; A bus is a motor vehicle with at least four wheels and two axles dedicated for transport personnel. The two cognitive modes can be compared as follows [Yuan Yongfu http://www.cnblogs.com/xdesigner]

Things

Classification comparison

Non-classification comparison

Automobile

A motor vehicle with at least four wheels and two axles.

A motor vehicle with at least four wheels and two axles.

Passenger Car

Vehicles for special transportation personnel.

A motor vehicle with at least 4 wheels and 2 axles for special transport personnel.

Bus

A passenger car that anyone pays.

A motor vehicle with at least four wheels and two axles dedicated for transport personnel can be used at any fee paid by anyone.

Obviously, if we do not adopt the classification and contrast cognitive approach, the cost of People's cognitive things will be greatly increased. I believe that no one can understand the complicated things in this world. But in fact, people with normal intelligence consciously use this classification and comparison Cognitive Method to easily recognize all the things around them.

The same is true for software development. software is the expression of developers' cognition of customer needs. If you do not understand the functional requirements, you cannot develop the right software. Just like cars, user needs are objective things. In the face of complicated customer needs, it is wise to adopt classification and comparison. Therefore, the object-oriented programming method is the specific implementation of the classification comparison method in software development.

The biggest advantage of the Cognitive Approach of classification comparison is the reuse of knowledge, so the biggest advantage of object-oriented programming is the reuse of code. The reuse of code has two major advantages: the code has a longer lifetime, which can greatly protect customers' investment, and the other is the ability to accumulate layers and reduce the amount of learning new knowledge. [Yuan Yongfu http://www.cnblogs.com/xdesigner]

Code is the result of the customer's existing investment. Commercial software developers should fully consider the protection of the customer's existing investment. The old code should be saved as much as possible when the cost permits.

Code is the cell of software, code longevity is the basis of software longevity, and also the basis for maximizing the customer's investment value.

 

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.