Want to know object oriented analysis and design ebook? we have a huge selection of object oriented analysis and design ebook information on alibabacloud.com
Object | concept | design
In object-oriented design and implementation, we must spend time and energy figuring out these concepts: abstraction, encapsulation, inheritance, and polymorphism to
and object-
derived class. p103(53) Do not confuse the optional inclusion with the need for inheritance. Modeling an optional inclusion into a class where inheritance can lead to flooding. p108(54) When creating an inheritance hierarchy, try creating a reusable framework, rather than a reusable component. p112(55) If you use multiple inheritance in your design, let's say you made a mistake. If you don't make a mistake, you need to try to prove it. P120(56) If yo
classes in the system domain.
(20) do not change operations into classes. Question any class whose name is a verb or a derived Automatic Word, especially a class with only one meaningful action. Consider whether the meaningful behavior should be migrated to an existing or undiscovered class.
(21) We often introduce a proxy class when creating an analysis model for an application. In the design phase, we of
paragraphs, and other parts unrelated.b) Module Design:The idea of modular design is actually a kind of "divide and conquer" thought, divides a big task into several subtasks, each sub-task is relatively simple.After getting a program module, according to the function of the program module divided it into several sub-modules, if the size of these sub-modules is too large, but also can be divided into smaller modules. This process is implemented using
your system. Be especially careful with classes whose names contain driver, Manager, System, Susystem. Plan an interface instead of implementing one.
Be careful with classes that have a large number of access methods defined in the public interface. A large number of access methods means that the relevant data and behavior are not centrally stored.
Be cautious about classes that contain too many non-communicating behaviors. Another manifestation of this problem is that many get and set func
/objects in your system. Be especially careful about the classes whose names include Driver, Manager, System, and Susystem. Plan an interface instead of implementing an interface.
Be careful with classes that define a large number of access methods in public interfaces. A large number of access methods mean that related data and behaviors are not stored in a centralized manner.
Be careful with classes that contain too many non-communication behaviors. Another manifestation of this problem is
61 empirical principles of Object-Oriented Design
Excerpted from the good revelation-Arthur J. Riel
(1)All data should be hidden inside the class. P13
(2)The class user must be dependent on the common interfaces of the class, but the class cannot depend on its users. P15
number of access methods in public interfaces. A large number of access methods mean that related data and behaviors are not stored in a centralized manner.(15) Be careful with classes that contain too many non-communication behaviors. Another manifestation of this problem is in your application.ProgramMany get and set functions are created in the public interface of the class.
(16) In an application composed of an object-
Object-Oriented Design, ORM, and nhib.pdf)
The ORM design is actually an O-to-D process, that is, the data entity is finally generated by the object. however, the problem is that in traditional design, we must
Just like the location of Newton's three major laws in classical mechanics, the open-closed principle is the cornerstone of object-oriented reusable design (Object Oriented Design or OOD. Other
from other classes in the system domain.
(20) do not change operations into classes. Question any class whose name is a verb or a derived Automatic Word, especially a class with only one meaningful action. Consider whether the meaningful behavior should be migrated to an existing or undiscovered class.
(21) We often introduce a proxy class when creating an analysis model for an application. In the design
direction as much as possible, that is, the top-level classes should share work in a unified manner according to the design.
(13) do not create all-powerful classes/objects in your system. Be especially careful about the classes whose names include driver, Manager, system, and susystem.Plan an interface instead of implementing an interface.
(14) Be careful with classes that define a large number of access methods in public interfaces. A large num
The solution is the organizational relationship between classes and mutual objects, including their roles, responsibilities, and collaboration methods.
"Good Object-Oriented Design Patterns" are those that can meet "respond to changes and improve reuse"
The object-oriented
involves the overall organization of software systems, global control, data access, and communication protocols between subsystems. In the MVC structure, the subsystems are divided into three types: model, view and controller.System design mainly describes the identification of design elements, data storage strategy, deployment subsystem and system design review
The maintainability and reusability of softwareRobert C.martin, a well-known software guru, believes that a low-maintainability (maintainability) software design is typically caused by the following 4 reasons:
Too stiff (rigidity)
Too fragile (fragility)
Low reuse rate (immobility)
High viscosity (Viscosity)
The software engineering and modeling guru Peter Coad believes that a good system
horizontal direction, the system functions should be distributed as much as possible. That is, according to the design, the top-level classes should share work in a unified manner. P30
(13)Do not create all-powerful classes/objects in your system. Be especially careful about the classes whose names include driver, Manager, system, and susystem. P30
Plan an interface instead of implementing an interface.
Content Overview
1. describes the design process of Object-Oriented Analysis Based on UML.
2. What charts and the functions of each diagram are included in the UML object-oriented model?
1. describes the
Just like the location of Newton's three major laws in classical mechanics, the open-closed principle is the cornerstone of object-oriented reusable design (Object Oriented Design or OOD. Other
need to implement personality, the specific object will be called.Encapsulation of ClassesThe responsibilities of low-level modules should not be done by high-layer modules, or the encapsulation of classes will be broken.The specifics of the encapsulation of classes in a program are:1. Duplicate the object that defines the class.2. Cross-use of various kinds of objects, the correct usage is that after one
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.