Let\'s say I have a class like:
class NavigationData { float roll; float pitch; double latitude; double longitude; }
and if I want to c
I would say it depends. If the class's data is validatable in isolation I would put the method in the class, but if the validation requires a context then I would create a validator class based on some interface.