error on this code while running getting error-:non-static variable this cannot be referenced from a static context What should i do to resolve this code
class Testy {
void girl()
{
System.out.println("Black girl");
}
class Testy1 extends Testy
{
void girl()
{
System.out.println("White girl");
}
}
public static void main(String[] args) {
Testy p=new Testy1 ();
p.girl();
}
}