Pergunta de entrevista da empresa Bank of America

How can you achieve encapsulation in a class?

Resposta da entrevista

Sigiloso

28 de nov. de 2012

My answer was to make your instance variables private and to set getters, but she expected me to also say about cloning the object and returning a clone of the object instead of the actual object.