Data abstraction &
Encapsulation
The
wrapping up of data and its functions into a single unit is called
Encapsulation.
When
using Data Encapsulation, data is not accessed directly, it is only accessible
through the functions present inside the class.
Data
Abstraction increases the power of programming language by creating user
defined data types. Data Abstraction also represents the needed information in
the program without presenting the details.
Abstraction
refers to the act of representing essential features without including the
background details or explanation between them.
No comments:
Post a Comment