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
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
6 months agotmuralimanohar
1 year, 7 months agoStavok
1 year, 8 months agoRP384
1 year, 11 months agoAnkit1010
2 years ago