Is this your company?
How does a given code example violate encapsulation principle (code describes a ListHandler object that adds or removes element from the list, and includes a getter and setter)
Anonymous
If getter returns the list stored internallly, then whoever has the reference to the list can modify the list from outside the class.
Check out your Company Bowl for anonymous work chats.