C# encapsulation | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

C# encapsulation

I thought encapsulation means adding extra information.?

24th May 2018, 3:13 AM
Km Figuerrez
Km Figuerrez - avatar
1 Answer
+ 1
Encapsulation means data hiding. If you would make a login page you would not like anyone to snoop and see the data of your password this is why we need to hide(encapsulate) it. It does not mean to add information but rather to hide important information for other people not to see.
24th May 2018, 4:13 AM
Neet
Neet - avatar