How to create a subclass in NetBean IDE 7.2 ?
I have done this >>>
public class C {
private int m;
private int n;
public C(int mIn , int nIn){
m=mIn;
n=nIn;
}
public int m1(){
return m+n;
}
I need to create a subclass to OVERRIDES methods m1 so that its return the difference between m and n instead of sum !
I have done this >>>
public class C {
private int m;
private int n;
public C(int mIn , int nIn){
m=mIn;
n=nIn;
}
public int m1(){
return m+n;
}
I need to create a subclass to OVERRIDES methods m1 so that its return the difference between m and n instead of sum !









