Java Programming Home Page: Archive: Message #46

Date: Feb 24 2000 20:26:26 EST
From: "Java Programming" <javaProgramming-owner@listbot.com>
Subject: Interface example

interface X {
	double PI = Math.PI;
	double PiOn2 = PI/2;
}
interface Y {
	double E = Math.E;
}
interface Z extends X,Y{
	 void foo();
}

public class 
	TrivialApplication 
		implements Z {
	 public void foo(){}

	public static void main(
		String args[]) {
		System.out.println( 
			"PI="+PI);
		System.out.println( 
			"E="+E);

	}
}