November 2012
Beginner
336 pages
8h 17m
English
It’s time to move past main() methods for writing programs and dig a bit deeper. This step has several elements to it, so I’ve broken the first big step into two chapters. This chapter covers the fundamentals of defining the interface to a class: restricting direct access to member variables and using methods to allow indirect access.
In Chapter 7, “Using Java Methods to Communicate,” I’ll build on this practice by designing methods that express the services a class offers.
In this chapter, we’ll cover the following topics:
As Chapter 7 will explain, in Java we use methods to ...
Read now
Unlock full access