1 . ; , , , , - .
Now a situation also arises when the code will respond in exactly the same way as the returned object, regardless of what type it is, in this case this means that the returned objects are inherited from some common base class. In this case, the return type must be a common base class.
(I suppose I assume that you will not respond exactly the same as in Array and AvFrameworkObject)
source
share