repl.it
@notrated/

__init__(self)-6

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class BaseA(object):
  def __init__(self):
    super(BaseA, self).__init__()
    print("BaseA.__init__")
 
class BaseB(object):
  def __init__(self):
    super(BaseB, self).__init__()
    print("BaseB.__init__")

class Derived(BaseA, BaseB):
  def __init__(self):
    super(Derived, self).__init__()
    print("Derived.__init__")

derived = Derived()