class A
{
int i;
int j;
void funA()
{
int z=i+j;
System.out.println("z value is:"+z);
}
}
class B extends A
{
int i,k;
void funB()
{
int x=i-k;
System.out.println("x value is:"+x);
}
public static void main(String[] args)
{
B b1= new B();
b1.i=20;
b1.j=10;
b1.k=5;
b1.funA();
b1.funB();
}
}