Sign in or register
for additional privileges

Border Codes

Mark Marino, Author

You appear to be using an older verion of Internet Explorer. For the best experience please upgrade your IE version or switch to a another web browser.

Double Inheritance

public interface DowsingCompassListener extends NavigatorListener

Creates a superclass that can be inherited in conjunction with others to avoid "double
inheritance."

Since Java is an object-oriented language, a class (and its attributes) can be inherited by another class.
class A extends class B
However a class cannot inherit from two or more classes, which is known as "double inheritance."  "Double inheritance" can lead to a variety of programming errors, so to avoid this added complexity, the developers of Java omitted it. Nonetheless, programmers at times need to build a new class out of multiple classes, and Java enables this construction through something called an "interface."  The interface ultimately acts as another type of superclass that can be inherited in conjunction with others.

This notion of double inheritance, its strange work around, is quite evocative when put in relation to immigration issues, especially at the border, where a few feet determines national identity.  Immigration politics trouble the complex social machinery of national inheritance.  Java's technical affordances which prohibit double inheritance but allow the interface work around, evoke the binary of national identity with all the work-arounds used by employers and immigrant workers to deal with the necessities of the global post-industrial economy.   
This page annotates:
DowsingCompassListener.java at line 23 - 28
Comment on this page
 

Discussion of "Double Inheritance"

Add your voice to this discussion.

Checking your signed in status ...