“Having class” or being “classy” has nothing to do with having money. I know poor people with class, I know rich people without it. That is, if we’re talking about general behavior and demeanor, not the underhanded insult people use when someone is doing or saying something they don’t like.