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
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-
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.
Program Many get and set functions are created in the public interface of the class.
(16) In an application composed of an object-oriented
inheritance in the design, first assume that you have made a mistake. If you do not make a mistake, try to prove it.
(56) as long as inheritance is used in object-oriented design, I have two questions: (1) is the derived class a special type of the thing it inherits? (2) is the base class part of the derived class?
(5
frameworks rather than reusable components when creating an inheritance hierarchy.
(55) If you use multiple inheritance in the design, first assume that you have made a mistake. If you do not make a mistake, try to prove it.
(56) as long as inheritance is used in object-oriented design, I have two questions: (1) i
/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
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 of access methods mean that related data and behaviors are not stored in a central
is, the top-level classes should share work in a unified manner according to the design. 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. P30Plan 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 of access methods mean that re
The term "Object-Oriented Software Design" and its related topics have become familiar to many developers and even get tired of hearing it. However, to attract attention and attract the attention of the "opposite sex", this topic is still a topic to choose this hot topic as the topic of this blog. Please forgive me. I also hope you can put down the shelf and skip
. If you do not make a mistake, try to prove it.(56) as long as inheritance is used in object-oriented design, I have two questions: (1) is the derived class a special type of the thing it inherits? (2) is the base class part of the derived class?(57) If you find multiple inheritance relationships in an object-
semantic relationship to model dynamic semantics, the type will be switched during runtime.
(50) do not convert the class object into a derived class. Be careful with any Derived classes that only have one instance.
(51) If you think you need to create a new class at runtime, take a step back to recognize that you want to create an object. Now, we can generalize these objects into a class.
(52) it should b
information in another class (that is, non-communication behavior ).Dependency in a stable direction.(11) make sure that the abstract concept you are modeling for is a class, not just the role played by an object.(12) distribution of system functions in the horizontal 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 crea
it is not possible to be completely closed, the designer must make a choice about what kind of change the module he designed should be closed. He had to guess the type of change most likely to occur, and then construct abstractions to isolate those changes.Wait until the change takes place and take action immediately.
When we first write the code, we assume that the change does not occur. When changes occur, we create abstractions to isolate the same kind of changes that occur later.In the fac
Object-Oriented design method: The basic idea of Java object-oriented programming is to solve problems by constructing and organizing objects. Objects are good, and any object can be considered an
modification of the situation to expand the system function To meet the requirements of open and closed principle. The dependency inversion principle is one of the basic principles behind the technologies and frameworks of COM, CORBA, EJB, and spring.4. Combination/Aggregation multiplexing principleThe combination/aggregation multiplexing principle, also known as the synthetic multiplexing principle, is to use some existing objects in a new object by
===================================== Another versionWhat are design principles?
Design principles are basic tools. applying these rules can make your code more flexible, easier to maintain, and easier to expand.Basic Principles
Encapsulation change Encapsulate what varies.
It is intended for interface programming rather than implementing Code to an interface rather than to an implementation.
Combinat
. The Notice package contains all command objects that process cache update notifications. The factory package contains the c‑factory class, this class generates the corresponding subclass object of the ccommand Class Based on the message header.
The program code in the main package uses the ccommand class and the ccommandfactory class, so it inherits the creadcommand class according to the internal command package and internal factory; the class in
1. An important experience for Object-Oriented Design:
Anyone who owns the data provides external operations on the data.
2. Object-oriented refining experience:
Term refining method.
Case:1. Draw circles on the blackboard
Through this sentence, it is easy to think of the ob
Good questions about object-oriented analysis and design. it may take some time for the younger brother to get in touch with object-oriented design. every time you design a new system,
I entered school in September and graduated in July. It ended my pleasant and rich college life at the Software Institute. This series is a review of the four-year study of professional courses, see: http://blog.csdn.net/xiaowei_cqu/article/details/7747205
Object-Oriented Programming
This is the first lesson in programming. I was also the first time in this course to get started with programming languages a
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.