repl.it
@notrated/

__init__(self)-3

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
class BaseA(object):
  def __init__(self):
    print("BaseA.__init__")
 
class BaseB(object):
  def __init__(self):
    print("BaseB.__init__")

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

derived = Derived()