QuestionQ94Verified/Object-Oriented ProgrammingCopy linkReport a problemAsk AstroTutorSave questionWhich statements about object-oriented programming in Python are true?Choose twoAan object is a recipe for a classBthe arrows on a class diagram are always directed from a superclass towards its subclassCencapsulation allows you to protect some data from uncontrolled accessDinheritance is the relation between a superclass and a subclassShow AnswerAnswerExplanationEncapsulation controls access to an object's internal data, helping prevent uncontrolled modification. Inheritance is the relationship in which a subclass derives behavior and attributes from a superclass.Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion