Bird
0
0

Why do behavioral patterns emphasize defining object interaction rather than object structure?

hard🧠 Conceptual Q10 of 15
LLD - Behavioral Design Patterns — Part 1
Why do behavioral patterns emphasize defining object interaction rather than object structure?
ABecause interaction reduces memory usage
BBecause structure is irrelevant in object-oriented design
CBecause structure is fixed and cannot be changed
DBecause interaction controls system behavior and flexibility
Step-by-Step Solution
Solution:
  1. Step 1: Understand behavioral pattern focus

    Behavioral patterns focus on how objects communicate to control system behavior and flexibility.
  2. Step 2: Reject incorrect statements

    Structure is important but handled by other patterns; interaction does not primarily reduce memory; structure can change.
  3. Final Answer:

    Because interaction controls system behavior and flexibility -> Option D
  4. Quick Check:

    Behavioral = interaction controls behavior [OK]
Quick Trick: Behavioral patterns shape system behavior via interaction [OK]
Common Mistakes:
MISTAKES
  • Ignoring importance of structure
  • Assuming interaction saves memory
  • Believing structure is immutable

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes