class employee(object)numemployee def __init__(selfnamerate)self owed self name name self rate=rate employee numemployee + def __del__(self)employee numemployee - def hours(selfnumhours)self owed +numhours self rate return(" hours workednumhoursdef pay(self)self owed return("payed % self nameclass variablessuch as numemployeeshare values among all the instances of the class in this examplenumemployee is used to count the number of employee instances note that the employee class implements the __init__ and __del__ special methodswhich we will discuss in the next section we can create instances of the employee objectsrun methodsand return class and instance variables by doing the following