Compilation error :
types C and B are incompatible;
both define a(), but with unrelated return types
a() in C and B should have co-variant return type is based on Liskov substitution principle.
Lets say types Collection and ArrayList will be co-variant
This section is not available anymore. Please use the main Exam Page.1z0-819 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
ASPushkin
11 months, 2 weeks agotmuralimanohar
2 years agoStavok
2 years, 1 month agoRP384
2 years, 5 months agoAnkit1010
2 years, 5 months ago