How does my code become more flexible and easy 2 change because of encapsulation? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How does my code become more flexible and easy 2 change because of encapsulation?

12th Jul 2016, 4:41 PM
Abu Obaida
Abu Obaida - avatar
1 Answer
+ 3
Because you can change how the method works without thinking about how someone else uses the method.
15th Jul 2016, 11:19 AM
Bernhard Eriksson
Bernhard Eriksson - avatar