- Joined
- Sep 6, 2009
- Messages
- 5
- Reaction score
- 0
i have error in line no.3 and 7 ....
class A {
int i;
i = 8;
}
class B extends A{
int i;
i = 76;
void add(int a) {
int i;
i=a;
System.out.println("value of
i"+super.i);
System.out.println("value of
i"+this.i);
System.out.println("vaue of i="+
i);
}
}
class A {
int i;
i = 8;
}
class B extends A{
int i;
i = 76;
void add(int a) {
int i;
i=a;
System.out.println("value of
i"+super.i);
System.out.println("value of
i"+this.i);
System.out.println("vaue of i="+
i);
}
}