+ 1

what is encapsulation?

5th Nov 2017, 11:38 AM
Afghanistan Azad
Afghanistan Azad - avatar
6 Answers
+ 6
encapsulation:wraping of data & its functions into single unit
6th Nov 2017, 1:03 PM
Shwetha
Shwetha - avatar
+ 3
It is the idea that the implementation details of a class and its function should be kept to function names and requested arguments only. You should never give direct access to a classes internal state or fields, only public access points (getter and setter functions). In short, I should only know the required input and exspectd output, not how that output is achieved.
5th Nov 2017, 2:44 PM
josh mizzi
josh mizzi - avatar
+ 2
Enclosing something inside of something, not revealing the internals to the outside. Making a "black box".
5th Nov 2017, 11:44 AM
deFault
+ 2
wrapping of data into one single unit
18th Dec 2017, 2:14 PM
Kalpana Reddy
0
ThNks
6th Nov 2017, 11:09 PM
Afghanistan Azad
Afghanistan Azad - avatar
0
Thanks everyone
6th Nov 2017, 11:10 PM
Afghanistan Azad
Afghanistan Azad - avatar