Which of the these is the functionality of ‘Encapsulation’?
A. Binds together code and data
B. Using single interface for general class of actions.
C. Reduce Complexity
D. All of the mentioned
Answer:A
Which of the these is the functionality of ‘Encapsulation’?
A. Binds together code and data B. Using single interface for general class of actions. C. Reduce Complexity D. All of the mentioned
Explanation: ‘Encapsulation’ acts as protective wrapper that prevents code and data from being accessed by other code defined outside the wrapper.