sscasc@tumkur print( getperimeter()print( getarea() setradius( print( radiusprint( getperimeter()print( getarea()output exampleconstruct py class car()""" simple attempt to represent car ""def __init__(selfmakemodelyear)"""initialize attributes to describe car ""self make make self model model self year year def get_name(self)"""return neatly formatted descriptive name ""name str(self yearself make self model return name my_new_car car('audi'' ' print(my_new_car get_name()output audi destructor (__del__(method like constructorthere is an equivalent destructor special method called __del__(howeverdue to the way python manages garbage collection of objectsthis function is not executed until all references to an instance object have been removed destructors in python are methods which provide special processing before instances are de_allocated and are not commonly implemented since instances are rarely de_allocated explicitly example:destructor py class myclasscount use static data for count def __init__(self)constructorincr count myclass count myclass count def __del__(self)destructordecr count myclass count myclass count def howmany(self)return count return myclass count sp_python programming