|
|
|
|
|
by redtrackker
4326 days ago
|
|
What's wrong with getters and setters? It's just redundant code. Most of the time developers don't actually need to override the basic get/set operation on a variable. Yet you have to write the get/set methods over and over. How do other languages address this issue? Scala does a good job. You don't need to actually write a get/set method. But if you wanted to modify getFoo() you would simply implement the method with your custom getter |
|