What is the result of invoking Car’s scop method?

Given:

What is the result of invoking Car’s scop method?

Given:

What is the result of invoking Car’s scop method?

A.
Both vehicles and Motorized’s stop methods are invoked.

B.
Vehicles stop method is invoked.

C.
Motorized’s stop method is invokedD. The implementation of the Car’s stop determines the behavior.

E.
Compilation fails.

Explanation:

The Car class is implementing the methods.
Methods are not implemented in interfaces.



Leave a Reply 6

Your email address will not be published. Required fields are marked *


Humberto Banuelos

Humberto Banuelos

D

mknet

mknet

C >> compilations doesn’t fail.

tommy

tommy

The right answer has to be “The implementation of the Car’s stop determines the behavior.”
Maybe this should be a single line and this question is badly structured?