Originally posted by dipu menon:
This is because, the hello() is protected and only subclasses of the Child
would have access to it.
No, it is because the RunClass class is in a different package.
The keyword "protected" allows access from the same package, or from subclasses of the class where "protected" is used.