Does the word "class" have the same definition in the next two sentences?

She has a lot of class.

The class of all sets is not a set.
different meanings