HCL Interview Question
Software Engineer / DevelopersEncapsulation:
Wrapping up of both data and methods in a single unit called class
Abstraction is "the process of identifying common patterns that have systematic variations; an abstraction represents the common pattern and provides a means for specifying which variation to use" (Richard Gabriel).
Encapsulation:
Wrapping up of both data and methods in a single unit called class
Abstraction is "the process of identifying common patterns that have systematic variations; an abstraction represents the common pattern and provides a means for specifying which variation to use" (Richard Gabriel).
they all mean same.
- jeevan June 04, 2010