In python OOP, lets say, Person is a parent class with its own constructor; then Student is a sub class of Person, before I use Student, must Person.__init__(self)
be called first in the constructor of Student? Plus, can I define a new constructor in Student class?
class Person():
def __init__(self):
Above is class Person with its constructor
class Student(Person):
def __init__(self):
Person.__init__(self)
def __init__(self, age)
What I mean is, could Student have its own constructor? If so, must Person.__init__(self)
be called in the Student constructor in this case?