Deal of The Day! 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 10 Question 116 Discussion

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

You are asked to develop a program for a shopping application, and you are given this information:

The application must contain the classes Toy, EduToy, and ConsToy. The Toy class is the superclass of the other two classes.

The int calculatePrice (Toy t) method calculates the price of a toy.

The void printToy (Toy t) method prints the details of a toy.

Which definition of the Toy class adds a valid layer of abstraction to the class hierarchy?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Germaine
16 days ago
Option B is the clear winner. Gotta love that abstract layer of awesomeness! It's the toy-tastic solution we've been waiting for.
upvoted 0 times
Kenia
2 days ago
User2: Absolutely, it's the perfect choice for the shopping application program.
upvoted 0 times
...
Dana
5 days ago
User1: I agree, Option B definitely adds a valid layer of abstraction to the class hierarchy.
upvoted 0 times
...
...
Hildred
22 days ago
I prefer Option D because it provides concrete implementations for the methods, making it easier to understand and use.
upvoted 0 times
...
Temeka
23 days ago
I agree with Anjelica. Option C defines abstract methods which enforce consistency in subclasses.
upvoted 0 times
...
Anjelica
1 months ago
I think Option C adds a valid layer of abstraction because it defines abstract methods that must be implemented by subclasses.
upvoted 0 times
...
Desmond
1 months ago
Haha, Option A? Really? That's about as abstract as a concrete block. Option B is the only sensible choice here.
upvoted 0 times
Carmen
2 days ago
Yeah, Option A is too specific. Option B provides a good level of abstraction.
upvoted 0 times
...
Vallie
3 days ago
I agree, Option B is definitely the best choice for adding abstraction.
upvoted 0 times
...
...
Rodolfo
2 months ago
I agree, Option B is the way to go. The abstraction of the Toy class allows for better code organization and easier maintenance down the line.
upvoted 0 times
Willodean
15 days ago
User 3: Option B allows for better code organization and easier maintenance.
upvoted 0 times
...
Magda
22 days ago
User 2: I agree, Option B adds a valid layer of abstraction to the class hierarchy.
upvoted 0 times
...
Daren
30 days ago
User 1: I think Option B is the best choice.
upvoted 0 times
...
...
Theresia
2 months ago
Option B seems to be the best choice here. The abstract Toy class provides a clear and logical hierarchy for the different types of toys.
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