Answer:
It will give below compile-time error as:-
Since '_Default.sum()' returns void, a return keyword must not be followed by an object expression.
Means if the return type is void,then we need not return any value from code as void returns Nothing.
Asked In: Many Interviews |
Alert Moderator