InterviewSolution
| 1. |
Write A Note On Encapsulation? |
|
Answer» Encapsulation is an OBJECT-oriented design approach that closely binds the implementation of a class to its data representation, logically hides the details of the implementation from users of the data TYPE, and PROVIDES a public interface to the data type's BEHAVIOR. It implies an implementation, which is hidden from the class user, and an interface, which is visible to the class user. It helps you to handle large scale programming tasks.The idea behind encapsulation is to take a complex system that demands a lot of attention and to turn it into an object that handles all its WORK internally and can easily form a concept. Encapsulation is an object-oriented design approach that closely binds the implementation of a class to its data representation, logically hides the details of the implementation from users of the data type, and provides a public interface to the data type's behavior. It implies an implementation, which is hidden from the class user, and an interface, which is visible to the class user. It helps you to handle large scale programming tasks.The idea behind encapsulation is to take a complex system that demands a lot of attention and to turn it into an object that handles all its work internally and can easily form a concept. |
|