Chapter 5. Interfaces and Inheritance
YOU saw an example of implementing an interface in the previous chapter. You can read more about interfaces herewhat they are for, why you might want to write one, and how to write one.
This chapter a...
Interfaces
There are a number of situations in software engineering when it is important for disparate groups of programmers to agree to a "contract" that spells out how their software interacts. Each group should be able to write their ...
Inheritance
In the preceding chapters, you have seen inheritance mentioned several times. In the Java language, classes can be derived from other classes, thereby inheriting fields and methods from those classes.
Definitions
A class that is ...