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
Answer:A
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
Explanation: All the mentioned are the heuristics followed for information hiding.