How does my code become more flexible and easy 2 change because of encapsulation? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
+ 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