O'Reilly logo

Developing Applications with Java™ and UML by Paul R. Reed

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Interfaces

Chapter 2 briefly defined two types of inheritance: implementation and interface. Interface inheritance and how it is treated in Java is quite unique among object-oriented languages. This isn't to say that other languages don't support interfaces. C++ doesn't formally distinguish the construct, but an interface can be implemented by extension of a class in which nothing but pure virtual functions are defined. In Visual Basic, interface inheritance is accomplished through the implements keyword. Java has a little in common with Visual Basic in that regard because it, too, uses the keyword implements. However, this is where the similarity ends.

The designers of the Java language wisely granted interfaces their own unique definition. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required