QuestionQ18Verified/Advanced Object-Oriented ProgrammingCopy linkReport a problemAsk AstroTutorSave questionWhich statement is true about a parameter named cls?AIt is the name of a module that delivers an abstract method decorator.BIt is usually used as the first parameter of a static method.CIt is usually used as the first parameter of a class method.DIt is usually used as a reference to a class instance.Show AnswerAnswerExplanationIn Python, cls conventionally names the first parameter of a class method and refers to the class itself.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion