Learn about grokking object oriented design interview pdf, we have the largest and most updated grokking object oriented design interview pdf information on alibabacloud.com
I. Design Principles1. Dependency inversion principle (DIP)
High-level modules (stability) should not depend on low-level modules (changes), both of which should depend on abstraction.Abstract (stable) should not depend on implementation details (changes), and implementation details should depend on abstraction.
2. Open and closed principle (OCP)
Class modules should be extensible, but cannot be modified; open to extensions and closed to changes
by the program, the value of the inside does not know when will be overwritten If you pass a class, struct, and so on, the parameters and return values are passed through some space in memory.The reference is converted into a pointer operation.Constructor: The same as the class name, no return value, implementation of the class member initialization. It is best to initialize the initial value list, and if the function body is initialized, the data member has completed the default initialization
One, the distinction of the concept
Some people confuse object-oriented database design (i.e. database schema) with object-oriented database management system (OODBMS) theory. In fact, the former is a database user-defined database mode of thinking, the latter is the idea o
package, it will affect all classes in the package, but it will not affect other packages.
Package coupling principle
No-ring dependency principle (Acyclic Dependencies Principle, ADP)
The package dependency does not allow loops.
Stable-Dependencies Principle, SDP)
Dependency in a stable direction
Stable-abstractions principle (SAP)
The abstraction level of the package should be consistent with its stability.
Old ti
C # overview of the object-oriented design model (1): Face-to-Face Design Model and mongo.zip
Lecture content: this training course introduces the basic concepts and principles of object-oriented
For Java programmers, mastering object-oriented design theory and some design patterns is an essential skill. To start programming without learning a theory is similar to learning a language without studying the alphabet. There's a lot of object-
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
define a large number of access methods in the public interface. A large number of access methods means that the relevant data and behavior are not centrally stored.
(15) Be more careful with classes that contain too much communication behavior. P31
Another manifestation of this problem is the creation of many get and set functions in the public interface of the classes in your application.
(16) In an application composed of an object-
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
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
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
Seven principles: Open and close principle, Richter substitution principle, dependency reversal principle, synthesis/aggregation multiplexing principle, Dimitri rule, interface isolation principle, single duty principle.The open and closed principle is the cornerstone of object-oriented reusable. The other six principles are instruments and tools.Details of the rules (reproduced in this section)http://kb.cn
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
. Use aggregations/combinations to achieve code reuse and less inheritance reuse.Dependency Inversion principle: For abstract programming, do not target specific programming.Seven design principles of object-oriented1. Opening and closing principle2, the Richter replacement principle3. Single Duty principle4. Interface Isolation principle5. Dependency Inversion principle6. Dimitri Principle7. Combination/Ag
computing problems. But the method of gradual refinement cannot provide a system strategy or method to solve a specific problem. Sometimes, there is no top-down method for some problems. Structured program analysis is an effective method for small-scale programs, but it is often ineffective to promote it to large-scale system development, developers cannot use this method to easily reuse reusable components of previous programs. The abstract mechanism of ob
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
1. Overview of Object-oriented System Development
The idea of Object-oriented has already involved various stages of software development, such as: Object-Oriented Analysis (OOA, Object
The maintainability and reusability of software
Robert 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 design shou
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
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
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.