Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-808 Topic 4 Question 109 Discussion

Actual exam question for Oracle's 1Z0-808 exam
Question #: 109
Topic #: 4
[All 1Z0-808 Questions]

Given these requirements:

Bus and Boat are Vehicle type classes.

The start() and stop() methods perform common operations across the Vehicle class type.

The ride() method performs a unique operations for each type of Vehicle.

Which set of actions meets the requirements with optimized code?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Bok
4 days ago
I disagree, I believe option B is more optimized as it uses an interface which allows for flexibility in implementing the methods.
upvoted 0 times
...
Latanya
5 days ago
I think option A is the best choice because it uses an abstract class for common operations and allows for unique operations in the subclasses.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77