Creatures in the Monster Manual do not have class features.
=

The only way for a creature to have class features is if it acquired the features from the Player's Handbook and/or Xanathar's Guide to Everything (ignoring homebrew). All the features that monsters have including Shapechanger and Spellcasting, among others, are not class features even though they emulate them.