Classes:
In Operations Manager, a class is a definition of an item that can be discovered and managed. A class can represent a computer, a database, a service, a disk, an application, or any other kind of object that requires monitoring.
Every SCOM object is an instance of class. This means that you cannot
Groups:
In Operations Manager, a group is a logical set of objects that can be used to define the scope of overrides, views, user roles, and notifications.
A monitor or rule is applied to a specific class. To change the value for a parameter of a rule or monitor, you create an override. You have the following options for applying your override:
For detail, pls. refer Using classes and groups for overrides
https://learn.microsoft.com/en-us/system-center/scom/manage-mp-overview-override-targets?view=sc-om-2019
Roger