Which of the given statements refers to data encapsulation in OOPs ?

Rohith

Which of the given statements refers to data encapsulation in OOPs ?



A) The data and operation for an object are defined and fixed
B) The data of an object is encapsulated in its class.
C) The data is hidden for an object.
D) A class have multiple objects.

Answer & Solution Answer: Option B
Solution:
The data of an object is encapsulated in its class.

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
Site is Blocked
Sorry! This site is not available in your country.