QuestionQ49Verified/Advanced Object-Oriented ProgrammingCopy linkReport a problemAsk AstroTutorSave questionReview the following code snippet and choose the statement that most accurately describes it. Aself.name is the name of a class variableBvar1 is the name of a global variableCExcalibur is the value passed to an instance variableDweapon is the value passed to an instance variableShow AnswerAnswerExplanationself.name is an instance attribute because it is assigned through self in the initializer. Its assigned value is Excalibur.Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion