I have 3 classes
package a;
public class A {
    protected void add(){}
}
package b;
import a.A;
public class B extends A {
    public static void main(String[] args) {
        B b=new B();
        b.add();//this is works
    }
}
package b;
public class C {
    public static void main(String[] args) {
        B b=new B(); 
        b.add(); //this will not work 
    }
}
question is B class supposed to have its own copy of the add method, so why can't I access it from C class in the same package?
 
     
     
    