Vidyalelo
Python · Q71

Concept of Object Oriented Programs in Python

Programming · Python · question 71

Q71

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.
A.__init__(self)
Answer
B.
B.__init__(self)
C.
A.__init__(B)
D.
B.__init__(A)

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board