calling private and protected methods by sending a message to an object