SOFTWARE DESIGN
DESIGN PATTERNS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
What is NOT a correct statement for the Hollywood Principle?
|
Call us, we don’t call you.
|
|
A low-level component never calls a high-level component directly.
|
|
It is a way to prevent dependency rot.
|
|
High-level components control when and how low-level components participate in the computation.
|
Explanation:
Detailed explanation-1: -The dependency inversion principle is a design principle that states that high-level modules should depend on abstractions rather than concrete implementations. This helps decouple the high-level and low-level modules, making it easier to change the low-level ones without affecting the high-level ones.
Detailed explanation-2: -The DRY principle is stated as “Every piece of knowledge must have a single, unambiguous, authoritative representation within a system". The principle has been formulated by Andy Hunt and Dave Thomas in their book The Pragmatic Programmer.
There is 1 question to complete.