Calling a parent class constructor from a child class in python [duplicate]
Python recommends using super()
.
Python 2:
super(Instructor, self).__init__(name, year)
Python 3:
super().__init__(name, year)
Python recommends using super()
.
Python 2:
super(Instructor, self).__init__(name, year)
Python 3:
super().__init__(name, year)