Write an == operator that determines if two EvenNumber objects are equal. We will define them as being equal if they have the same value (seems logical enough). The operator is declared in the class, you need to implement it after the class declaration. (Donβt forget EvenNumber:: before the function name operator==.)
A Person has a firstName and lastName. Implement operator< (outside the class) to compare people by their first and last names according to this logic:
If the current personβs last name is < the other personβs last name, return true.
Write a prefix ++ operator that changes an EvenNumber to the next even number (adds two to its value). The operator is declared in the class, you need to implement it after the class declaration.
Write a postfix ++ operator that changes an EvenNumber to the next even number (adds two to its value). The operator is declared in the class, you need to implement it after the class declaration.