Let\'s say I have a class like:
class NavigationData
{
float roll;
float pitch;
double latitude;
double longitude;
}
and if I want to c
Your class should be designed such a way and provide such methods that validate() is always true:
Such validate() methods are called class invariants and are important part of Design by Contract.