classTestClass():global_variable="This is a global variable"def__init__(self,student="name of student",grade="grade of student",major="major of student"):self.name=studentself.grade=gradeself.major=majordef__str__(self):def__ge__(self,other):'''overloading >='''ifself.name>=other.name:returnTrueelse:returnFalsedef_internal_use_only(self):#can still be called directly
Class attributes are meant to be global across all instances