created: 3/6/99, revised: 5/7/99, 01/25/00, 01/26/02, 07/22/02, 06/05/03, 04/15/06

CHAPTER 53 — Interfaces

Java has single inheritance, only. This means that a child class inherits from only one parent class. Usually this is all you need. But sometimes multiple inheritance would be convenient. Interfaces give Java some of the advantages of multiple inheritance without the disadvantages.

Chapter Topics:

The chapter includes some small examples, but you will have to wait until you start programming graphical user interfaces to see interfaces used realistically. Interfaces are crucial to GUI programming.


Is your car a vehicle or a taxable property?