code_junkie

Considering object encapsulation, should getters return an immutable property?

Nov 11th, 2011
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. contact.print( printer ) ; // or
  2. contact.show( new Dialog() ) ; // or
  3. contactList.findByName( searchName ).print( printer ) ;
Add Comment
Please, Sign In to add comment