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);
}
}
|