Python_Institute
PCAP-31-03 · Question #23
What is true about Python class constructors? (Select two answers)
The correct answer is A. the constructor's first parameter identifies an object currently being created C. the constructor can be invoked directly under strictly defined circumstances. See the full explanation below for the reasoning.
Question
What is true about Python class constructors? (Select two answers)
Options
- Athe constructor's first parameter identifies an object currently being created
- Bthe constructor cannot use the default values of the parameters
- Cthe constructor can be invoked directly under strictly defined circumstances
- Dsuper-class constructor is invoked implicitly during constructor execution
How the community answered
(28 responses)- A82% (23)
- B7% (2)
- D11% (3)
Community Discussion
No community discussion yet for this question.