Let\'s say I have a class like:
class NavigationData { float roll; float pitch; double latitude; double longitude; }
and if I want to c
Depends...
Sometimes the validations are not part of the class itself, but business logic, and adding it to the class would prevent reutilization, and therefore, the usage of a validating class is good. Otherwise, the class should be able to validate itself.