Which of the following can be used to invoke the __init__ method in X form Y, where Y is a subclass of X in Python 3.x?
Questions & Answers › Category: Python › Which of the following can be used to invoke the __init__ method in X form Y, where Y is a subclass of X in Python 3.x?
Which of the following can be used to invoke the __init__ method in X form Y, where Y is a subclass of X in Python 3.x?
a. super().__int__(self)
b. super().__init__()
c. X.__init__(self)
d. X.__init__()