s/class/common human decency/g
I think a lot of what you're talking about has more to do with an apparent inability of some people to act with any sort of common sense around other human beings rather than 'class'. This happens in any workplace (my mother was a secretary, and had to leave one of her companies because her boss was consistently making advances), but in technology especially so.
Perhaps this is a symptom of the social environment a lot of programmers seem to have in common. A lot of us spend our teenage years alone or with a small group of very close friends. Because of that, certain people might not develop a full understanding of social customs, or worse: deride them as 'silly'. This is a fundamental mark of immaturity, and most people and most programmers grow out of it. Some people don't, and I think it's especially common among programmers because they (and yes, this is stereotype) tend to be very solitary.
People like us tend to spend a lot of time online, where you can make sure you only talk to people who are very similar to you (case in point: HN). Not being forced to talk to people with different opinions results in stunted social growth. A huge part of life is learning to interact with people who are different than you.
When you throw someone who doesn't have a lot of experience with social norms and is used to having everything their way into an office work environment, they generally don't mesh well.