Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  Test
Language: JAVA
Code:
class A
{
    protected int i=10;
}
class B extends A
{
    protected int i=20;
}
public class HelloWorld extends B{

     public static void main(String []args){
         A a=new HelloWorld();
        System.out.println(a.i);
     }
}
Comments: