Disturbing or politically incorrect classes

Posted by Jonas B on Stack Overflow See other posts from Stack Overflow or by Jonas B
Published on 2010-04-26T02:51:21Z Indexed on 2010/04/26 2:53 UTC
Read the original article Hit count: 348

Filed under:
|
|

Please don't take this seriously! - Community wikied

Satire is always fun. Try to come up with the most shocking, disturbing or politically incorrect class you can think of. (But please no racism or anything seriously offensive or anything that can't be interpeted as satire).

I'll go first with my example:

public class Person
    {
        public bool Female;

        public Person(bool female)
        {
            Female = female;
        }

        public static bool operator <(Person j1, Person j2)
        {
            if (j1.Female && !j2.Female)
                return true;
            else
                return false;   
        }

        public static bool operator >(Person j1, Person j2)
        {
            if (!j1.Female && j2.Female)
                return true;
            else
                return false;
        }

        public static bool operator <=(Person j1, Person j2)
        {
            if ((j1.Female == j2.Female) || (j1.Female && !j2.Female))
                return true;
            else
                return false;
        }

        public static bool operator >=(Person j1, Person j2)
        {
            if ((j1.Female == j2.Female) || (!j1.Female && j2.Female))
                return true;
            else
                return false;
        }
    }

© Stack Overflow or respective owner

Related posts about classes

Related posts about humor