What will be the output of the following program?
public class Example {
public static void main(String args[]) {
Area a = new Area();
a.area1();
a.area2();
}
}
interface C {
int side = 4;
void area1();
}
interface D extends C {
double length = 3.5;
double breadth = 4.5;
void area2();
}
class Area implements D {
public void area1() {
System.out.println(side * side);
}
public void area2() {
System.out.println(length * breadth);
}
}