abstraction is the hiding the complexity from the end user by providing him set of
interfaces and to derive the code and invoke the code
Data Hiding or Abstraction:
Normally, in a Class, variables used to hold data (like the age of a dog) is declared as Private. Functions or property routines are used to access these variables. Protecting the data of an object from outside functions is called Abstraction or Data Hiding. This prevents accidental modification of data by functions outside the class.
No comments:
Post a Comment