Python object-oriented programming - object-oriented software development

Python object-oriented programming - object-oriented software development

Object-oriented software development

A lot of people in the class after school finished python mechanism, a problem encountered in the production, still ignorant force, which is actually very normal, because the development of any program is to design programming, python simply a mechanism of class programmatically, if you insist on holding a class to your question Sike, are forced to become more ignorant every minute thing, in the past, software development is relatively simple, from the analysis task to write a program, then the program debugging can be done by one person or to a group. But with the rapid increase in the size of the software, any software problem facing very complex, too many factors to consider, an error in a software generated and hidden errors, unknown errors may reach alarming levels, this is not During the design phase it is completely resolved.

So in fact a set of standardized software development, we have learned just a small part of a complete development process, each stage requires a clear mandate, then the next phase of work at the right stage in ensuring a premise, called software Engineering

Object-oriented software engineering includes the following sections:

1, the object-oriented analysis (object oriented analysis, OOA)

Systems analysis phase of software engineering, requirements analysts and users together to make the user's needs accurate analysis and clearly stated, system analysis software from the big side should do, rather than how to do it. Object-oriented analysis in accordance with object-oriented concepts and methods in the analysis of the task, from the relationship between the objective existence of things and things, summarized the relevant objects ( 'features' and 'skills' object) and the object links between objects, and has the same properties and behavior of the class is identified by a class.

This is reflected in the establishment of a demand model can work, in which case the model is rough.

2, object-oriented design (object oriented design, OOD)

The demand model object-oriented analysis phase is formed, the specific design of each part separately.

First class design, class design may contain multiple levels (using the mechanisms of inheritance and derived). These classes are then put forward ideas and methods of programming is based, including the design of algorithms.

In the design stage does not involve any of a particular computer language, but in a more general description of the tool (e.g., pseudo-code or flowchart) will be described .

3, OOP (object oriented programming, OOP)

The result of object-oriented design, select a program written in a computer language it may be python.

4, object-oriented test (object oriented test, OOT)

After the written procedure to the user before use, must be rigorous testing program, the purpose of testing is to find bugs in the program and correct it.

The tests are conducted to test for the object-oriented approach to test the class as a basic unit.

5, the object-oriented maintenance (object oriented soft maintenance, OOSM)

As for any product requires service and maintenance, as the software will also be some problems with, or want to improve the performance of software vendors, which need to modify the program.

Due to the use of object-oriented approach to develop a program, use the program's relatively easy to maintain.

Because encapsulation object, modify an object's impact on other small objects, maintenance program using object-oriented approach, greatly improves the efficiency of software maintenance, high scalability.

In object-oriented approach, certainly the earliest development of object-oriented programming (OOP), then OOA and OOD are not yet developed, so programmers to write object-oriented programs must also be deep into the analysis and design, especially in the field of design, that time is now OOP actually contains OOD and OOP two stages, which the programmer is relatively high, many people find it difficult to grasp.

Now a large design software, is strictly in accordance with the five stages of object-oriented software engineering, this five-stage work is not done by one person from start to finish, but done by different people, so OOP stage the task is relatively simple. According to the programmer only needs to put forward ideas OOd, object-oriented language that can program.

Guess you like

Origin www.cnblogs.com/Kwan-C/p/11536502.html