#encapsulation
Read more stories on Hashnode
Articles with this tag
TLDR; Because it makes it easier to change our code later Getters and setters are methods that are used to read/write an object's private field. They...