QuestionQ119Verified/Object-Oriented ProgrammingCopy linkReport a problemAsk AstroTutorSave questionWhich statements are true about Python class constructors?Choose twoAthe constructor's first parameter must always be named selfBthere can be only one constructor in a Python classCthe constructor cannot be invoked directly under any circumstancesDthe constructor cannot return a result other than NoneShow AnswerAnswerExplanationA Python class has only one effective initializer method, __init__; redefining it replaces the earlier definition rather than creating an overload. An __init__ method must return None; returning any other value raises a TypeError.Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion