In this chapter:
Here’s another look at the earlier definition of a class:
“A class creates the structures for saving data and contains program code that regulates this data.”
So far you’ve learned about one component of a class, its fields or variables, with which you can save certain things in a class instance. But you’re still missing another important part—the part that regulates access to the data. The class concept supports data-regulating ...