Implementing a Boolean ADT

Define and implement the Boolean ADT described in HSM Ch.1.3, exercise 4, as a C++ class. Include an operator to output the Boolean value as TRUE or FALSE. Make sure that the class works with TestBooleanClass.cpp, which should produce the output:
TRUE & TRUE is     TRUE
TRUE & FALSE is    FALSE
TRUE | FALSE is    TRUE
FALSE | FALSE is   FALSE
~ TRUE is          FALSE
~ FALSE is         TRUE
TRUE XOR TRUE is   FALSE
TRUE XOR FALSE is  TRUE
TRUE <=> FALSE is  FALSE
FALSE <=> FALSE is TRUE
TRUE => TRUE is    TRUE
TRUE => FALSE is   FALSE

Answer