adplus-dvertising
frame-decoration

Question

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: (d).All of the mentioned

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What are the heuristics for information hiding under don’t extend access?