Quote:
Originally Posted by Barbaroti 
Couldn't he also do it like this?

Couldn't he also do it like this?
Code:
public class C
{
protected int m;
protected int n;
public C(int mIn , int nIn)
{
m=mIn;
n=nIn;
}
public int m1()
{
return m+n;
}
}
Code:
public class B extends C{
public B(int mIn, int nIn) {
super(mIn, nIn);
}
@Override
public int m1()
{
return m*n;
}
}
or like this






