Registered: Sep 2002
Location: San Diego, CA
Troublesome ICE Question - Assign Responsibilities ?
I finally took the ICE test for the last time (I take the real one in two weeks) and scored a 80%. After, reviewing some of the questions I got wrong, I thought I might be missing something where I clearly thought my answer was correct. I'll post these questions individually.
As always, your viewpoint is appreciated!
Here's the second one:
In an OO system, it is desirable to assign responsibilities:
a) according to interaction diagram messaging.
b) more heavily in a few controlling classes.
c) relatively evenly across the classes.
d) to minimize the overhead of message-passing.
Multiple Select - Please select all of the correct answers (this question has 2 correct choices).
Answer: A, C. I contend that D would be a more powerful motivation than C by the Protected Variation GRASP pattern. It states on pp. 336 of Larman the principle, "Don't talk to strangers" or "Law of Demeter." This sounds like creedance for option D. Answer C sounds overly general because by Expert, you may certainly have more responsibility in one class over several others. Also, some of the GoF patterns hint to more specialized responsibilities behind facades, adapters, proxies, etc. which would have less detailed responsibility.
Report this post to a moderator | IP: Logged