And a purpose for their existence. There's a reason you want to create them. If that purpose is for the object to disembowel itself... something's gonna smell. ;-)
Read: getters and setters are evil. Don't subscribe to it absolutely fully, getX or setX have their place.
But take a look at your objects using those lenses. Might be interesting.
And a purpose for their existence. There's a reason you want to create them. If that purpose is for the object to disembowel itself... something's gonna smell. ;-)
Read: getters and setters are evil. Don't subscribe to it absolutely fully, getX or setX have their place.
But take a look at your objects using those lenses. Might be interesting.