created: 3/6/99, revised: 5/7/99, 01/25/00, 06/05/03, 04/15/06, 01/28/18, 01/20/25

go to home page   go to next page highlighting

CHAPTER 83 — Interfaces

Chapter Topics:

Java has single inheritance, only. This means that a child class inherits from only one parent class. Usually this is all you need. Sometimes multiple inheritance would be convenient to give a child class characteristics inherited from several parent classes. But this might be confusing. What happens when two parents have different versions of the same method?

Interfaces give Java some of the advantages of multiple inheritance without the disadvantages.

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


QUESTION 1:

Is your car a vehicle or a taxable property?


go to home page   go to next page