Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. class First:
  2.  
  3.     def __init__(self):
  4.         pass
  5.  
  6.     def say(self):
  7.         print("First")
  8.  
  9.  
  10. class Second:
  11.  
  12.     def __init__(self):
  13.         pass
  14.  
  15.     def say(self):
  16.         print("Second")
  17.  
  18.  
  19. class Test(First, Second):
  20.  
  21.     def __init__(self):
  22.         pass
  23.  
  24.     def say(self):
  25.         super(Second, self).say()
  26.  
  27.  
  28. t = Test()
  29. t.say()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement