One of the most powerful features of object-oriented programming is its dynamic nature. Dynamic code has a whole new meaning as the world continues to emerge with more available features, hybrid structures, and standards for sustainable development. Whether it's a new file storage standard or streaming media standard, or a social web site or some new thing on the Internet Pioneer API, Web programming is alw
Heroes Good, little brother contact object-oriented also has a period of time, can each design a new system will encounter on the object how to split and design problems, special to consult.
For example, the current system requirements are: users, roles, points.
Users are: U
Since the publication of "subvert traditional-object-oriented design ideas (collation)", many of my friends and comments have been posted, either good or bad. Of course, there are also many friends in
Article In the comments, I posted my own opinions. Here I will explain some typical comments.
From wanghualiangComment
Code highlighting produced by Ac
Design class---> Design class is the abstraction of one or more objects in a system implementation.---> Design classes have been mapped directly to the implementation code, so the design class relies on the implementation language. On the other hand, the design class origina
The author's classic discussion of object-oriented analysis and design:OOP: Object-oriented programming is an implementation method that is organized into a collaborative collection of objects, each representing an instance of a class that is a member of a class hierarchy that is joined by an inheritance relationship.
A comparison between static language and dynamic language object-oriented Packaging:1) package data: Java through the private variables, such as the implementation of the local variables within the function of JavaScript implementation2) Encapsulation implementation: Changes inside objects are transparent to the outside, and objects communicate through exposed interfaces3) package Type: Java in the impleme
The synthetic multiplexing principle, also known as the combinatorial/aggregation multiplexing principle (composition/aggregate reuse Principle, CARP), is defined as follows:
Synthetic multiplexing principles (Composite reuse Principle, CRP): Try to use object combinations instead of inheritance to achieve reuse.
The principle of synthetic multiplexing is to use some existing objects in a new
Object-oriented callback functions
The design method of process language C has corresponding implementation methods in object-oriented language C + +. The object-oriented
http://blog.csdn.net/lovelion/article/details/7537584In order to satisfy the principle of opening and closing, abstract design is needed for the system, and abstraction is the key to open and close principle. In programming languages such as Java, C #, you can define a relatively stable abstraction layer for the system, and move the different implementation behaviors to the specific implementation layer. In many o
At the beginning, we did not have anything. Later, the technical staff developed object-oriented, design patterns, and more frameworks to facilitate development, maintenance, expansion, and management, tools, software, etc. This is all for better development and development of better products.
All of these should not be tied to technology development. Programmer
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
clause 32: Make sure your pubilc inherits the is-a relationship of plastic mold
Make sure public inheritance models "Is-a"
one of the most important rules for –c++ (OOP) object-oriented programming is that public inheritance (open inheritance) means "is-a" (a) relationship.
– If you make class D ("derived") Inherit class B ("Base") as public, you tell the compiler that each
before we start the Android software app, we need to make a preliminary understanding of object-oriented design principles and design patterns. Talent in the future combat process, less detours. Make our software development career feel happy and relaxed. Okay, nonsense, let's talk about the software development
The first question is that I don't think object-oriented is difficult, but the "object-oriented" technology is too limited. First, it can only be used to solve the limited category of problems in software development, or it is only one of the many dimensions of software. Second, even if you only focus on this dimension
First, we need to know what the mode is:
In short: while people constantly discover problems and find solutions to problems in their own environments, discovering different problems actually involves a common nature. These essence is what we call models.
Therefore, the model is representative.
In the Object-Oriented field, the earliest modeling method research was published in 1995 by Gang of Four (gof, Eri
the Internet, I find that there is less information in this regard, and the program design and implementation are relatively simple. Due to the lack of good design concepts, this results in poor program reusability. So in the Process of program design and implementation, I introduced the idea of Object-
Labels: C ++ solid principle object-oriented design ideas The solid principle of Object-Oriented Design
SRP the single responsibility principle single Responsibility Principle
OCP the open closed principle Principle
LSP the
GitHub Source: Https://github.com/mygithubq/libraryManagementSystem/tree/master (a) use case diagramUse case diagrams play an important role in the requirements analysis phase, which is a system function model diagram that can be observed by external users as participants. The entire development process is carried out around the requirements phase use case. First you need to identify the participants.After login, the administrator queries the reader's information and adds, deletes, updates, and
The design is the software realization based on the analysis model, divides into the system design and the detailed design two important stages, occupies the modularization, the coupling degree and the cohesion, the reusability principle. Software architecture is the key to the success or failure of a system, including warehouses, hierarchies, MVC, client/server,
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.