Which of the following is provided using encapsulation ?(a) Data protection (b) Data sharing(c) Separation of data and methods (d) All of these
Answers
Answered by
14
Encapsulation is one of the feature and fundamental aspects of object oriented program or OOP.
It is mainly used for bundling data and methods that work on that data within one unit.
For example, class in Java is an object oriented program, and encapsulation can be used for separating of data and methods.
Answered by
4
Answer: (a) Data protection
Explanation:
Similar questions
Political Science,
7 months ago
India Languages,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Science,
1 year ago