mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
16 lines
209 B
Java
16 lines
209 B
Java
public class A {
|
|
public int i;
|
|
}
|
|
|
|
class B extends A {
|
|
public int getI() {
|
|
return 42;
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
A a = new B();
|
|
a.i = 23;
|
|
System.out.println(a.i);
|
|
}
|
|
}
|