+ 2
How are encapsulation and abstraction are related in java????
please give answer in perfect word and don't give any link...
5 Antworten
+ 4
encapsulation is basically keeping data and functions together, the best way to implement it is by using class (as data and corresponding functions are encapsulated within class ). The word abstraction simply means showing only necessary things and hiding others , this is implemented by interfaces and abstract classes
+ 2
😊
+ 1
thanks Deepak Chaurasia🙂
+ 1
si se puede eredar una clase privada
+ 1
Encapsulation means wrapping up attribute and behaviour of an object into single unit or in single word it simply means data hiding.
Abstraction means hiding complexity i.e., hiding the unnecessary code of the program that is not necessary for the user.