Home Segments Top Top Previous Next

Chapter 36:

How to Combine Private Variables and Methods with Packages

You learned about Java's private, protected, and public machinery in Segment 15, and you learned about Java's package machinery in Chapter 35. In this unit, you learn how these two work together to manage access to variables and methods.