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