What is ‘Basis of Encapsulation’?
A. object
B. class
C. method
D. all of the mentioned
Answer:A
What is ‘Basis of Encapsulation’?
A. object B. class C. method D. all of the mentioned
Explanation: Encapsulation is the mechanism that binds together code and data it manipulates, and keeps both safe from outside interface and misuse. Class, which contains data members and methods is used to implement Encapsulation.