QuestionQ2Verified/Object-Oriented ProgrammingCopy linkReport a problemAsk AstroTutorSave questionWhat is true about the bases attribute in Python?AThere is no such property.BIt is accessible inside an object.CIt is accessible inside a class and an object.DIt is accessible inside a class.Show AnswerAnswerExplanationThe __bases__ attribute belongs to a class and contains a tuple of its direct base classes. It is accessed on the class itself, not on an instance.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion