What is wrong with this line of coding for java?
public class ClassB extends ClassA {
int attributeB;
public ClassB(int a) {
atrributeB = a;
super(40);
}
}
What is wrong with this line of coding for java?
public class ClassB extends ClassA {
int attributeB;
public ClassB(int a) {
atrributeB = a;
super(40);
}
}
super has to be always called first in the constructor