Class Inheritance : Subclass : Class PYTHON TUTORIALS


PYTHON TUTORIALS » Class » Subclass »

 

Class Inheritance


class P(object):             
     pass
class C(P):                  
     pass

c = C()                      
print c.__class__            
print C.__bases__



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Class
» Subclass