Suppose B Is A Subclass Of A To Invoke The Init Method In A #1102
Suppose B is a subclass of A, to invoke the __init__ method in A from B, what is the line of code you should write?
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Python OOPs - Python Inheritance - Quiz No.1.
Suppose B is a subclass of A, to invoke the __init__ method in A from B, what is the line of code you should write?
A.__init__(self)
B.__init__(self)
A.__init__(B)
B.__init__(A)