How are encapsulation and abstraction are related in java???? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 2

How are encapsulation and abstraction are related in java????

please give answer in perfect word and don't give any link...

11th Sep 2018, 3:39 PM
Lipsa Mohanty
Lipsa Mohanty - avatar
5 Respuestas
+ 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
12th Sep 2018, 10:10 AM
Nao
Nao - avatar
+ 2
😊
12th Sep 2018, 2:18 PM
Nao
Nao - avatar
+ 1
thanks Deepak Chaurasia🙂
12th Sep 2018, 2:11 PM
Lipsa Mohanty
Lipsa Mohanty - avatar
+ 1
si se puede eredar una clase privada
23rd Sep 2018, 1:14 PM
Wilmer Manjarres Lopez
Wilmer Manjarres Lopez - avatar
+ 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.
24th Jun 2019, 3:10 PM
anuradha mall