Is there any reason to use "plain old data" classes?
- by Michael
In legacy code I occasionally see classes that are nothing but wrappers for data. something like:
class Bottle {
int height;
int diameter;
Cap capType;
getters/setters, maybe a constructor
}
My understanding of OO is that classes are structures for data and the methods of operating on that data. This seems to preclude objects of…