by mechinn · 13y ago · 0 comments
OOP works much better in teams and is a bit/lot of overhead when you are making contracts with yourself.
However if I'm working with someone and they tell me call this to get a name then ill do that, if later they realize they need to split out the name into first and last I can still use that old function to get the full name by them combining the strings and returning that in that old "getter".
PS that might be a very poor example, hopefully you get my point :)
(And that's where C#'s way of dealing with getters and setters is a big win, because they look like member variables, so there's no extra kludginess.)