InterviewSolution
| 1. |
What Is Data Encapsulation ? |
|
Answer» Data Encapsulation is also known as data hiding. The most IMPORTANT advantage of encapsulation is that it lets the programmer create an object and then provide an interface to the object that other objects can use to call the METHODS PROVIDED by the object. The programmer can change the internal workings of an object but this transparent to other INTERFACING programs as long as the interface REMAINS unchanged. Data Encapsulation is also known as data hiding. The most important advantage of encapsulation is that it lets the programmer create an object and then provide an interface to the object that other objects can use to call the methods provided by the object. The programmer can change the internal workings of an object but this transparent to other interfacing programs as long as the interface remains unchanged. |
|