Learn about head first object oriented analysis and design, we have the largest and most updated head first object oriented analysis and design information on alibabacloud.com
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
during analysis. "whoever owns this attribute has the method to operate this attribute." This experience applies to many situations, this is the first thing we need to consider in our analysis. When this principle cannot solve the problem, we need to think about other methods. We must make it clear that no matter how we analyze it, the ultimate goal is to abstract objective things into a form that can be e
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 most important thing is my core Object-Oriented Analysis ideas:
1() Identify the most critical business scenarios. Generally, you can use verbs to search for them. For example, in the recruitment system, a candidate is a one-time candidate to deliver a position, and a candidate is a business scenario; if a student takes an exam in a certain course, the e
1. Opening and closing principle (the Open Closed principle OCP)
A module should be open in terms of extensibility and should be closed in terms of modification. Therefore, the interface encapsulation mechanism, abstract mechanism and polymorphic technique should be considered as far as possible in object-oriented design. The principle is also suitable for non
personal characteristics, each card also according to the characteristics of individual to pick, I am a person who make clear, or find florist shop owner and gift shop boss do a VISITOR, Let flower shop owner according to the characteristics of mm choose a bouquet of flowers, so that the gift shop owner also choose a card according to the characteristics of each person, so much easier;Visitor pattern: The purpose of the visitor pattern is to encapsulate some action that is applied to a data str
. Therefore, when testing the SQRT (calculate the square root) operation (this operation returns an error message when the input is negative, check the boundary: a negative number close to zero and zero itself. "Zero" is used to check whether the programmer has made the following mistake:
Set the statement if (x> = 0) calculate_square_root ();
If (x> 0) calculate_square_root ();
In order to predict possible errors in the software, the analysis model a
61 military rules designed for PHP Object-Oriented Analysis
(1) All data should be hidden inside the class.
(2) A class user must depend on the common interfaces of the class, but the class cannot depend on its users.
(3) Minimize messages in the protocol of the class.
(4) implement the most basic public interfaces that all classes understand [for example
Common Features of Excellent Software: low coupling and High Cohesion
Polymorphism: static polymorphism (function polymorphism, function overload), dynamic polymorphism (virtual function)
Basic object-oriented principles
Principle of opening/closing: a module should be open to expansion and should be closed for modification.
Principle of full replacement: The derived class should be able to completely repla
If the principle of open-end is object-oriented design, then the dependency reversal principle is one of the main implementation mechanisms of object-oriented design, which is the concrete implementation of system abstraction. The
Analysis of the data object ing mode in php design mode, analysis of design mode
There are many different design modes in php. Here we will introduce you to an uncommon data ing mode. I hope this article will help you.
The data in
In the absence of a good study of object-oriented
Design
Before the design pattern, I had a vague understanding of Java interfaces and Java Abstract classes.
When I first learned the Java language, it was hard to understand why the concept of interfaces was required. Although multi-inheritance can be imple
Before studying the design patterns of object-oriented design, I had a vague understanding of Java interfaces and Java Abstract classes.
When I first learned the Java language, it was hard to understand why the concept of interfaces was required. Although multi-inheritance can be implemented, there is only a method nam
Before all the text, I need to emphasize that I personally opposed to structure typing, so even if the content of the text "looks like" go interface, readers should not feel that I am praising go interface. What I like more is the way that Haskell and rust. Unfortunately rust and go as much as I want to shrink all the words are the shortest, the result code written to even the readability is not, the word has become a symbol. If rust the mess of pointer desi
can be built by sticking design patterns, how the interfaces of these patterns, whether the existing models are sufficient, and what types of models should be used.
3,How can we systematically develop applications using the design mode.
WhilePoadThese problems can be solved:Poad--Pattern-Oriented Analysis and
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 number
Object-oriented design principlesBorn to support maintainability multiplexing, these principles are embedded in many design patterns, which are the guiding principles that are summarized in many design scenarios, and understand
Object
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.