It is a principle of data hiding that the internal...
# getting-started
j
It is a principle of data hiding that the internal workings of an object should be kept hidden, the "black box" principle. Public variables make maintenance more difficult, because over time other classes become dependent on them.