Object-oriented code tries to minimize dependencies by moving responsibility for handling tasks away from ___ and toward the objects in the system.
Correct answer
B. client code
10 views
B. client code
10 views
Responsibility is moved away from client code and into the objects themselves. Instead of the calling code deciding how a task is carried out, each object knows how to do its own work.
This reduces dependencies: client code only needs an object's interface, so a change in implementation stays inside the class.
Keep preparing with more Computer Science MCQs on MCQsExam.com.
Not sure why the answer is B? Ask here and get an explanation.