I dont quite understand why Static methods can be inherited in Java ?
Inheritance is like inheriting from the base class AND Static belongs to the Class and not Obje
public class StaticTest extends StaticBase {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Start");
StaticTest.printIt();
}
}
class StaticBase{
public static void printIt(){
System.out.println("Inside bas Class");
}
}
Does this code not prove that Static is Inherited ??