I extended a class(A) from a class(B) that has a static method then in other class(C) im creating an instance of class(A) and Im able to access static method of class B why is it happening?
Class A:
public class NetworkUtils extends AbsClass {}
Class B:
public class AbsClass {
static public void eat(){}
}
In Class C:
Networkutills network = new Networkutills();
network.eat(); //why should I access eat class method