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