In Pega, class groups are directly inherited from @baseclass, which is the ultimate parent class in the Pega class hierarchy. All classes and class groups ultimately trace their inheritance back to @baseclass, making it the fundamental root of the class structure.