repl.it
@notrated/

__init__(self)-5

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
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):
    super(Derived, self).__init__()
    print("Derived.__init__")

derived = Derived()