Use getter methods instead of public variables