Question

Which of the following correctly describes the concept of 'encapsulation' in OOP?

A Creating a new class from an existing class
B Allowing a method to perform differently based on the object calling it
C Bundling data and methods into a single unit, and restricting direct access to internal details
D The process of converting objects into byte streams for efficient storage or transmission of data
E Allowing one class to acquire the properties of another class
Practice Next

Relevant for Exams:

Hey! Ask a query