+1 vote
in Software Architecture by (75.2k points)
What are the heuristics for information hiding?

(a) Restrict the scope of declarations to the smallest possible program segment

(b) Make class attributes at least protected and preferably private

(c) Avoid global visibility

(d) All of the mentioned

I have been asked this question during an internship interview.

This question is from Visibility, Accessibility and Information Hiding in chapter Visibility, Accessibility and Information Hiding of Software Architecture

1 Answer

0 votes
by (46.2k points)
Right choice is (d) All of the mentioned

Easy explanation: All the mentioned are the heuristics followed for information hiding.

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
...