Object-oriented languages, like C++ and Java, use various keywords to control and restrict the resource usage of a class. public members of a class are available to everyone. So they can be accessed ...