Question

What is Encapsulation in OOP?

A The ability of an object to take on many forms.
B The process of creating new classes from existing ones.
C Bundling data and methods that operate on the data within a single unit (class), and restricting direct access to some of the object's components.
D Hiding the implementation details from the user.
E Defining a contract for classes to implement.
Practice Next

Hey! Ask a query