I want to invoke a protected method of another instance from within a subclass of the class providing this protected method. See the following example:
publi
You could access the protected methods either by subclassing and overriding; also when they are available in the same package. I will add some details. You can read details here.
The example that you have is on lines of the protected clone() method available in the Object class in java; you cannot directly call it on any object (although all object implicitly extend from the Object class).