Logical operators don't seem to work in a very basic class

Printable View