Sir, Why I write your code but I getting error

package pack2;

import pack1.Access_Modifier;

public class A extends Access_Modifier
{
static void call()
{
Access_Modifier m1 = new Access_Modifier();
System.out.println(m1);
}
}