QuestionQ36Verified/Object-Oriented ProgrammingCopy linkReport a problemAsk AstroTutorSave questionWhich statements about Python class constructors are true?Choose twoAthe constructor is a method named initBthere can be more than one constructor in a Python classCthe constructor must return a value other than NoneDthe constructor must have at least one parameterShow AnswerAnswerExplanationPython initializes an instance through its __init__ special method. This method receives the instance as its first parameter, conventionally named self, and it must not return a non-None value.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion