point destroyed noteideallyyou should define your classes in separate filethen you should import them in your main prog ram file using import statement kindly check python modules for more details on importing modules and classes class inheritanceinstead of starting from scratchyou can create class by deriving it from preexisting class by listing the parent class in parentheses after the new class name he child class inherits the attributes of its parent classand you can use those attributes as if they were defined in the child class child class can also override data members and methods from the parent syntaxderived classes are declared much like their parent classhowevera list of base classes to inherit from are iven after the class nameclass subclassname (parentclass [parentclass ])'optional class documentation stringclass_suite example#!/usr/bin/python class parentdefine parent class parentattr def __init__(self)print "calling parent constructordef parentmethod(self)print 'calling parent methoddef setattr(selfattr)parent parentattr attr def getattr(self)print "parent attribute :"parent parentattr class child(parent)define child class def __init__(self)print "calling child constructordef childmethod(self)print 'calling child methodc child( childmethod( parentmethod( setattr( getattr(instance of child child calls its method calls parent' method again call parent' method again call parent' method when the above code is executedit produces the following resultcalling child constructor calling child method calling parent method parent attribute similar wayyou can drive class from multiple parent classes as followsclass adefine your class