November 2012
Beginner
336 pages
8h 17m
English
Constructors are the last major Java class elements you need to cover. They’re a lot like methods in appearance. In fact, I’ll be able to use some of the discussion in Chapter 7, “Using Java Methods to Communicate,” to address what the similarities are and how you can apply them.
Unlike methods, constructors tie into the way objects get made, not just for the class they belong to, but also for classes they inherit from and classes that inherit from them. That subject is a chapter in itself, so here we’ll confine discussion to the way constructors work for the class at hand.
In this chapter, we’ll cover the following topics:
Read now
Unlock full access