When and why should I use public, private, and protected functions and variables inside a class? What is the difference between them? Outsider members cannot access those variables. “Outsiders” in the sense that they are not object instances of the declared class itself….