This is my first class
public class DigitalDevice {
public int abc = 1;
}
And this is my second class
public class SmartPhone extends DigitalDevice {
SmartPhone() {
abc = 2;
super.abc=3;
DigitalDevice.abc=4;
}
}
In the SmartPhone class, when I recall abc, DigitalDevice's abc is accessible and changeable, and when I recall super.abc, also DigitalDevice's abc is accessible and changeable, but when I recall DigitalDevice.abc, DigitalDevice's abc is not accessible and changeable and the IDE gives and error and asks for making abc static in the DigitalDevice class.
Is this true that in SmartPhone class abc is super.abc is DigitalDevice.abc?
staticmember fields, with regard toDigitalDevice.abc.