Exam PCAP-31-03 All QuestionsBrowse all questions from this exam
Question 55

What is true about Object-Oriented Programming in Python? (Choose two.)

    Correct Answer: C, D

    Encapsulation allows you to protect some data from uncontrolled access, which is a fundamental concept in Object-Oriented Programming (OOP) ensuring that the internal representation of an object is hidden from the outside. Inheritance defines the relationship between a superclass and a subclass, where a subclass inherits attributes and behaviors (methods) from the superclass.

Discussion
DKAT2023Options: CD

C and D are correct.