+1 vote
in Software Architecture by (75.2k points)
An operation of an object obj should send messages only to which of the following entities?

(a) The object obj;

(b) The attributes of obj;

(c) The arguments of the operation;

(d) All of the mentioned

This question was addressed to me in an interview for job.

Enquiry is from Interaction Design Process And Interaction Modelling Heuristics in division Unified Modelling Language of Software Architecture

1 Answer

0 votes
by (46.2k points)
The correct answer is (d) All of the mentioned

To explain: Law of dementor states An operation of an object obj should send messages only to the following entities- The object obj; The attributes of obj; The arguments of the operation.

Related questions

We welcome you to Carrieradda QnA with open heart. Our small community of enthusiastic learners are very helpful and supportive. Here on this platform you can ask questions and receive answers from other members of the community. We also monitor posted questions and answers periodically to maintain the quality and integrity of the platform. Hope you will join our beautiful community
...