Question

What is encapsulation in object-oriented programming?

A It is a way to hide the internal details of an object and provide access only through public methods.
B It is a way to define multiple classes within a single file.
C It is a way to represent the relationships between different objects.
D It is a way to create instances of a class.
Practice Next

Relevant for Exams:

Hey! Ask a query