class X; ... package Y; ... class X; ... extend the class here ...