Guest User

Untitled

a guest
Jul 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. # Python 2.7.15
  2.  
  3. class A(object):
  4. def __init__(self):
  5. print "class A __init__ called."
  6.  
  7. class B(A):
  8. def __init__(self):
  9. super(B, self).__init__()
  10.  
  11. def ShouldHaveBeenInClassA():
  12. pass
  13.  
  14. class C(B):
  15. def __init__(self):
  16. super(C, self).__init__()
  17.  
  18. def ShouldAlsoHaveBeenInClassA():
  19. pass
  20.  
  21. # Ad infinitum ...
  22.  
  23. obj = C()
Add Comment
Please, Sign In to add comment