Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- class Person
- {
- private:
- // TODO: update sortvalue with dependency injection to pass a value in and do conditional returns
- string sortValue();
- public:
- string personID, fName, lName, street, city, state, zip;
- bool operator == (Person p) {return (sortValue() == p.sortValue());};
- bool operator != (Person p) {return (sortValue() != p.sortValue());};
- bool operator > (Person p) {return (sortValue() > p.sortValue());};
- bool operator < (Person p) {return (sortValue() < p.sortValue());};
- bool operator >= (Person p) {return (sortValue() >= p.sortValue());};
- bool operator <= (Person p) {return (sortValue() <= p.sortValue());};
- };
- #include "Person.cpp"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement