/* * FeetInches.h * * Created on: Mar 28, 2019 * Author: johnsontimoj */ #ifndef FEETINCHES_H_ #define FEETINCHES_H_ class FeetInches { private: int feet; int inches; void fixFeetInches(void); public: FeetInches(); FeetInches(int f, int i); void setFeet(int f); void setInches(int i); int getFeet(void) const; int getInches(void) const; void setFeetInches(int f, int i); void setFeetInches(int f); int calcInches(void) const; double calcFeet(void); FeetInches & operator=(const FeetInches & rhs); FeetInches operator+(const FeetInches & rhs); FeetInches operator-(const FeetInches & rhs); bool operator==(const FeetInches & rhs); bool operator!=(const FeetInches & rhs); bool operator>(const FeetInches & rhs); bool operator<(const FeetInches & rhs); }; #endif /* FEETINCHES_H_ */