Encapsulation is a technique used for hiding the properties and behaviors of an object and allowing outside access only as appropriate. It prevents other objects from directly altering or accessing the properties or methods of the encapsulated object.:Wrapping up a data and function together in a singal unit is called encapsulation:combine the data & members in one :Writing Operations and methods stored in a single:encapsulation is nthing but of the binding the data n its related functionalities in a single unit ....:Encapsulation is a technique used for hiding the properties and behaviors of an object and allowing outside access only as appropriate. It prevents other objects from directly altering or accessing the properties or methods of the encapsulated object:It.s similar to the wrapping of choclate in a golden foil so that it doesn&
Category:Core Java Interview Questions
No comments:
Post a Comment