1.

________________ is a design guideline that states that one class should know only as much as it needs to know.(a) Law of knowledge(b) Class laws(c) Law of Demeter(d) Action methodsI have been asked this question at a job interview.The above asked question is from JMock topic in portion Testing with Mock Objects of JUnit

Answer»

Right ANSWER is (c) Law of DEMETER

The best I can EXPLAIN: The law of demeter is also KNOWN as the Principle of LEAST Knowledge.



Discussion

No Comment Found

Related InterviewSolutions