Wednesday, July 23, 2014

Data Abstraction in Java



Abstraction is the technique by which hiding the internal or implementation details then showing only functionality to user  called as abstraction
Ex:- user send sms then developer hide internal details and user can look only the environment  of sms is typing or sending to any particular number.
Ex:- car have engine tires and many things driver can drive only they will not know or understand hiding things they can only derive car only….etc

There are two ways of abstraction
1:- abstract class
2:- abstract interface


No comments:

Post a Comment