1.

Object-oriented code tries to minimize dependencies by moving responsibility for handling tasks away from ___ and toward the objects in the system.(a) server code(b) client code(c) machine code(d) procedural codeI had been asked this question during an online exam.The origin of the question is Object and Design-1 topic in portion Object Tools and Design and Variables in PHP of PHP

Answer»

Right option is (b) CLIENT code

Best EXPLANATION: Procedural code takes the form of a sequential series of commands and method calls. The controlling code TENDS to take responsibility for handling differing conditions. This top-down control can result in the development of duplications and dependencies across a project. Object-oriented code tries to minimize these dependencies by moving responsibility for handling tasks away from client code and TOWARD the objects in the system.



Discussion

No Comment Found

Related InterviewSolutions