关于方法覆盖的菜菜
public class test{
public static void main(String args[]){
System.out.println("Hello World!!!") ;
A a = new A(6) ;
a.printresult() ;
B b = new B(7) ;
b.printresult() ;
}
}
class A{
public int x, y ;
A(int i){
x = i ;
sendresult() ;
}
public void sendresult(){
y = x * x ;
}
public void printresult(){
System.out.println(y) ;
}
}
class B extends A{
}
在B类中我想通过构造函数向类中传递x,并利用方法的覆盖把y = x * x改成y = x + x,但是不知道那个super是怎么用的。~~请大家帮我把B类里面的东西补全~~谢谢

/cgi-bin/load_pic?verify=DRR8NUHogwm6XhIZFfyT5w%3D%3D" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://photoimg1./cgi-bin/load_pic?verify=DRR8NUHogwm6XhIZFfyT5w%3D%3D');}" onmousewheel="return imgzoom(this);" alt="" />