PCAP-31-03 Exam QuestionsBrowse all questions from this exam

PCAP-31-03 Exam - Question 55


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

Show Answer
Correct Answer: CD

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

1 comment
Sign in to comment
DKAT2023Options: CD
Jul 12, 2024

C and D are correct.