QuestionQ34Verified/Object-Oriented ProgrammingCopy linkReport a problemAsk AstroTutorSave questionWhich statements about Python class constructors are true?Choose twoAthe constructor’s first parameter identifies an object currently being createdBsuper-class constructor is invoked implicitly during constructor executionCthe constructor can be invoked directly under strictly defined circumstancesDthe constructor cannot use the default values of the parametersShow AnswerAnswerExplanationA Python initializer’s first parameter refers to the instance being initialized. Base-class initialization is not implicit and ordinarily requires an explicit super().__init__() call. Constructors or initializers can be invoked directly in defined circumstances, and their parameters may use default values.Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion