FileDocCategorySizeDatePackage
InterfaceInherit.javaAPI DocExample509Sat Nov 25 12:55:42 GMT 2000None

InterfaceInherit

public class InterfaceInherit extends Thread
Find out whether interfaces are inherited. Start with Thread which implements Runnable.

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] a)

		new InterfaceInherit().start();
	
public voidrun()

		if (this instanceof InterfaceInherit)
		System.out.println("This is InterfaceInherit");
		if (this instanceof Thread)
		System.out.println("This is Thread");
		if (this instanceof Runnable)
		System.out.println("This is Thread -- Interfaces ARE inherited!");