A java inheritance test, curious about member visibility and access