Implementation and overriding are not the same thing.
overriding (redefining the behavior of a method) and implementing (satisfying specific type constraints of a method)
In fact, only case A is the overriding.
--------
C Failed
Failed
it will not work for "void"
it will work if
interface AdapterFirst {
Object showFirst();
}
-------
B,E - ok
it is possible to mark the class without an abstract methods as abstract
-------
F Failed
method overriding access must not make more restrictive (can be less restrictive)
The three classes that successfully override the showFirst() method are A, B, and E.
Option A is correct because it provides a concrete implementation of the showFirst() method as required by the AdaptorFirst interface.
Option B is correct because it declares the showFirst() method as abstract, which means that any concrete subclass of MainClass must provide an implementation of the showFirst() method.
Option E is correct because it provides a concrete implementation of the showFirst() method as required by the AdaptorFirst interface.
To complement:
C: not override because methos return a String
D: even not compile, because class not abstract cannot contain methods abstract (without body
F: is no valid because is less restritive that the method
So A B and E are correct
upvoted 1 times
...
...
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
10 months, 4 weeks agoASPushkin
10 months, 4 weeks agoStavok
1 year, 10 months agod7bb0b2
1 year, 4 months ago