QuestionQ94

VerifiedObject-Oriented Programming

Which statements about object-oriented programming in Python are true?

Choose two
Explanation

Encapsulation 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.

Community Discussion

No comments yet. Be the first to start the discussion!