4 ms·
> A single standalone class is equivalent to a basic struct passed to functions. Not exactly -- a struct is equivalent to a class with public fields. If you ha
by sz4kerto 11y ago
> A single standalone class is equivalent to a basic struct passed to functions.
Not exactly -- a struct is equivalent to a class with public fields. If you have a non-anemic model class then you can guarantee that the object's state is within some boundaries (defined in the mutator methods).