Covariance by pictures

Report a typo

You have the following class hierarchy with the base class Obj.

class hierarchy with the class Obj

Suppose, you also have a class where a method has the return type A. If you want to override this method, which return types can the overriding methods have?

Choose the most accurate answer.

Select one option from the list
___

Create a free account to access the full topic