blob: 76cc010b309a2d50a663311f9e3c9eb923fe01c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package test1;
class CodeConvP {
private int a1 = 7;
protected int a2 = 11;
protected int a3 = 13;
protected int a4 = 17;
protected int b1 = 3;
public static int getA1(Object t) { return 23; }
public static int getA2(Object t) { return 27; }
public static void putB1(Object t, int v) { ((CodeConvP)t).b1 = 5; }
}
public class CodeConv extends CodeConvP {
private String a1 = "a1";
public int run() {
b1 = 0;
return b1 + a1.length() + a2 + a3;
}
}
|