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


i study about this in net and i recognized that" encapsulation is just a class with private data and functions" i.e. is a special class which we want to give it a name. am i correct?

11th Dec 2016, 1:30 PM
parisa - avatar
1 Answer
+ 3
encapsulation(not class) is a concept - to wrap up data and functions together. and class implements encapsulation. its that simple
11th Dec 2016, 1:36 PM
manish rawat
manish rawat - avatar