What are the heuristics for information hiding under don’t extend access?
A. Don’t pass or return references to class attributes—pass or return defensive copies instead.
B. Don’t pass parameters by reference
C. Don’t make aliases
D. All of the mentioned
Answer:A
What are the heuristics for information hiding under don’t extend access?
A. Don’t pass or return references to class attributes—pass or return defensive copies instead. B. Don’t pass parameters by reference C. Don’t make aliases D. All of the mentioned
Explanation: All the mentioned are the heuristics followed for information hiding under don’t extend access.