Q. Which method calls the parent constructor?

A
super().__init__
B
parent().__init__
C
base().__init__
D
self.__init__
Solution:

super().__init__ calls the parent class’s constructor.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!