What is the benefits of encapsulation in object oriented programming ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the benefits of encapsulation in object oriented programming ?

if you know any benefits another that please put it here - Control the way data is accessed or modified. - Code is more flexible and easy to change with new requirements. - Change one part of code without affecting other parts of code.

26th Sep 2017, 11:56 AM
moataz osman
moataz osman - avatar
4 Answers
0
Why do you need more benefits. The three benefits you have named are really good and extremely important. Although if you are a beginner, just start coding, make a mess. Discover the problems and start learning about encapsulation.
26th Sep 2017, 8:28 PM
sneeze
sneeze - avatar
0
thanks for you but I said the question to the discussion because I did not understand encapsulation well
26th Sep 2017, 9:13 PM
moataz osman
moataz osman - avatar
0
Encapsulation has been unclear for me a long time. The benefits of it came really slowly after I have seen a lot of code.
26th Sep 2017, 9:56 PM
sneeze
sneeze - avatar
0
thanks alot
26th Sep 2017, 10:08 PM
moataz osman
moataz osman - avatar