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.



Leave a Reply 5

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


IO

IO

E.
Compilation fails.

bob

bob

The correct answer is
“D. The implementation of the Car’s stop determines the behavior.”

Serrato

Serrato

I agree, D is correct