Engineering Full Stack Apps with Java and JavaScript
Which of the following is a legal return type of a method overriding the given method:
public Object myMethod() {...}
(Select the best option.)
Select 1 option
A. Object
B. String
C. Return type can be any object since all objects can be cast to Object.
D. void
E. None of the above.