This is why it's always let delete operation not static but deleted code
CodePudding user response:
Public class Parent {
Int x=100;
Void m () {
System. The out. Println (x);
}
}
The class Child extends the Parent {
Int x=200;
Public static void main (String [] args) {
The Child a=new Child ();
Arjun ();
System. The out. Println (a.x);
}
}
//the Child in the Parent, you write is wrong, the inner class has no such usage
CodePudding user response: