刚学java用eclipse编的程序不知道哪里错了请大神们指教
package java;class ju{
int a,b,area;//定义矩形的长宽;
public void Area1(){
area=a*b;
System.out.println("矩形的长为"+a+"宽为"+b+"其面积为"+area);
}
}
class li extends ju{
int c;
public void Area2(){
area=(a*b+a*c+b*c)*2;
System.out.println("矩形的长为"+a+"宽为"+b+"高为"+c+"其面积为"+area);
}
}
public class num1 {
public static void main(String[] args){
li x=new li();
x.a =1;
x.b=2;
x.c=3;
x.Area1();
x.Area2();
}
}