The main advantage of OO is that it 'hides' your data persistence. So instead of having to constantly call
As such, its purely semantic, and has (to my knowledge) very little relationship with datastructures, unless you contemplate replacing just a basic hash/access structure with real accessors, such as
. which would allow you to hide exactly how you return the value of the key. (of course, you could