MCQ PracticeSingle Best AnswerTopic: Basic Concept of OOP
Q
In OOP, what is encapsulation?
Question ID
#20072
Subchapter
Basic Concept of OOP
Action
Choose one option below
Choose Your Answer
Click an option to check whether your answer is correct.
A
Exposing all internal details ✔✖
B
Combining unrelated functions ✔✖
C
Hiding internal details and exposing a well-defined interface ✔✖
D
Avoiding the use of objects ✔✖
C
Correct Answer: C
Explanation
Encapsulation in OOP involves concealing the internal workings of an object and exposing only a well-defined interface, promoting modular and secure software design.