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

What is encapsulation?

8th Nov 2016, 8:03 AM
Faiyaz
Faiyaz - avatar
2 Answers
+ 6
encapsulation means wrappering the class! properties and menthods inside the class are safe and secure we cannt access it from out side without creating object. Exact answer is hidding the low level details and show only the details which are need by the user or methods from other classes . so only most of the times properties are declared as private and methods are declared as public ! .... if u know more than this ... just share with us! I just said what I have understand!
18th Nov 2016, 3:05 AM
Priyanka sundar
Priyanka sundar - avatar
0
Read the course.
8th Nov 2016, 8:53 AM
Seckar
Seckar - avatar