creating models. certainly got people get value out of these aspects of OO. the principles, however, focus very tightly on dependency management.
Dependency management is an issue that most of us have faced. whenever we bring up on our screens a nasty batch of tangled legacy code, we are experiencing the results of poor dependency management. poor dependency managment leads to code that is hard to change, fragile, and non-reusable. indeed, I talk abo
In-depth understanding of the JavaScript series: the principle of solid five principles of interface isolation ISPObjectiveIn this chapter we are going to explain the 4th of the S.o.l.i.d Five principles of JavaScript implementation, the interface isolation principle of the ISP (the Interface segregation Principle).English Original: http://freshbrewedcode.com/der
the programmer should have the-solid principle of artistic temperament. S.O.L.I.D is the acronym for several important coding principles (programming Priciple) in object-oriented design and programming (Oodoop).
SRP
The single Responsibility Principle
Single Responsibility Principle
Ocp
The Open Closed Principle
Open Closure principle
Lsp
Th
Labels: Easy SRP als construction for building subclass applications
Solid principles that every developer should know
Single Responsibility Principle (SRP)
Why does it violate SRP?
What problems will this design bring in the future?
Open/closed principle (OCP)
How to Make It (animalsound) conform to OCP?
LSP)
Interface isolation principle (ISP)
Depende
S.O.L.I.D is the acronym for several important coding principles (programming Priciple) in object-oriented design and programming (Oodoop).
SRP
the single Responsibility principle
single responsibility principle
OCP
the Open Closed principle
LSP
The Liskov Substitution Principle
Richter substitution principle
DIP
the Dependency inver
pattern. In fact, there is no need to rote the names of these principles, the program is written more, you will certainly notice these things, mastering the essence is the most important.Reference:Https://zh.wikipedia.org/wiki/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F_ (%E8%AE%A1%E7%AE%97%E6%9C%BA)Https://zh.wikipedia.org/wiki/SOLID_ (%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A1%E8%AE%BE%E8%AE%A1)Http://www.cnblogs.com/aehyok/archive/2013/05/21/3091917.html Copyr
() {transferer. expenditure (amount); payer. deposit (amount) ;}} class Start1 {public void Main () {bank account Zhang San = new bank account {card number = 111, balance = 10000 }; bank account Li Si = new bank account {card number = 222, balance = 5}; bank transfer operation transfer = new bank transfer operation (); Transfer. amount = 1000; transfer. transferor = James; transfer. recipient = Li Si; transfer money. transferring money () ;}} copying code S
Interestingly, the Five Principles of OO can be abbreviated as one word:Solid(Stability and stability) In fact, an organization should be stable. If it is not internally united (cohesion), how can it be stable! If cohesion is not high, the internal revolution will happen when there is a new change!
How to explain solid? It is actually the first letter of the five words:
1.S:Single Responsibility Principle
Solid is an abbreviation for several important coding principles
Srp:the Single Responsibility Principle sole responsibility principle
Ocp:the Open Closed Principle opening and closing principle
lsp:the Liskov Substitution Principle Richter Replacement principleLd:the Law of Demeter Dimitri
Isp:the Interface Segregation Principle Interface separation principle
Dip:the Dependency Inversion Principle depen
, the study of Java selection of books is a major problem, we must carefully choose to learn Java textbooks, so as not to be misled by the books. 2. Explore the doubts. When learning Java, each student must be more or less faced with difficulties, their own long time unable to answer. But also disdain like learning Java
Java Study Notes-Shang Silicon Valley 0918 class Li Jianchao: After a solid journey, you can go to your desired future. In 0918 class Li JianchaoWith the ignorance of the University and the desire for the world outside the ivory tower, I came to Beijing, Silicon Valley for java training. I have been working for one month. Although I have been late for a while, I
Unconsciously learning Java for some time, this time I feel the enrichment of learning, the joy of growth.The second stage of the learning process is mainly javaweb knowledge learning, this stage will use a lot of previous knowledge, so learning new knowledge at the same time in the review of the first stage of knowledge, in the daily high-intensity learning, learned knowledge is easy to forget, so must review. This stage of learning Html,js,css,sql l
10 object-oriented design principles that Java programmers should know, java Object-Oriented Design
Object-Oriented Design principles are at the core of OOPS programming, but most Java programmers I have seen are enthusiastic about design patterns such as Singleton, Decorato
Since the core of object design is the class, the following principles are basically the discussion of the design of the class, the other types of elements are relatively simple, basically also conforms to most of the principles listed here. Before we have analyzed the basic principles of object design, here I will review the core
Object-oriented design principles are at the heart of oops programming, but most of the Java programmers I've seen are enthusiastic about design patterns like Singleton (singleton), Decorator (adorner), OBSERVER (Observer), Instead of focusing enough attention on learning object-oriented analysis and design. It is important to learn the basics of object-oriented programming like "abstraction", "encapsulatio
Object-oriented design principles are at the heart of oops programming, but most of the Java programmers I've seen are enthusiastic about design patterns like Singleton (singleton), Decorator (adorner), OBSERVER (Observer), Instead of focusing enough attention on learning object-oriented analysis and design. It is important to learn the basics of object-oriented programming like "abstraction", "encapsulatio
least this is the result of 1 verification. Therefore, DFA and hybrid engines are not verified here. This article also focuses on java, so here we will focus on the two universal principles related to java (from "proficient in regular expressions" v3): 1. note: This principle does not specify the length of the priority matching result, but only specifies that am
garbage collection process are explained. The five articles will explain the principles of Java Program Performance tuning, especially the necessary knowledge in this process and the need to determine whether your program needs tuning. It also describes the problems you may encounter during tuning. At the end of this article, I'll give you some advice on how to make better decisions when tuning
As we all know, the basic principle of Java programming is to pursue high-cohesion and low-coupling solutions and code module design. Viewing the open source code of Apache and Sun can help you discover the practical use of other Java design principles in these codes. The Java Development Kit follows the following patt
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.