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

Salesforce Exam DEX-450 Topic 10 Question 93 Discussion

Actual exam question for Salesforce's DEX-450 exam
Question #: 93
Topic #: 10
[All DEX-450 Questions]

A developer must implement a CheckPaymentProcessor class that provides check processing payment capabilities that adhere to what defined for payments in the PaymentProcessor interface. public interface PaymentProcessor { void pay(Decimal amount); } Which is the correct implementation to use the PaymentProcessor interface class?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Jesusita
20 days ago
Ha! This question is a real payment-processing puzzle. I bet the developers who wrote this exam are real comedians.
upvoted 0 times
Mabelle
2 days ago
C) Public class CheckPaymentProcessor extends PaymentProcessor { public void pay(Decimal amount);
upvoted 0 times
...
Kattie
3 days ago
B) Public class CheckPaymentProcessor implements PaymentProcessor { public void pay(Decimal amount);
upvoted 0 times
...
Cecil
6 days ago
A) Public class CheckPaymentProcessor implements PaymentProcessor { public void pay(Decimal amount) {}
upvoted 0 times
...
...
Viola
1 months ago
Because the CheckPaymentProcessor should extend the PaymentProcessor interface, not implement it.
upvoted 0 times
...
Jodi
1 months ago
Why do you think option D is correct?
upvoted 0 times
...
Viola
1 months ago
I disagree, I believe option D is the correct one.
upvoted 0 times
...
Miles
1 months ago
Option B is the way to go, you can't have an empty method implementation, that's just wrong.
upvoted 0 times
Emilio
23 days ago
Yes, option B is the right choice. An empty method implementation is not allowed.
upvoted 0 times
...
Roosevelt
27 days ago
I agree, option B is the correct implementation.
upvoted 0 times
...
...
Luisa
1 months ago
Wait, why are we using the PaymentProcessor interface? Shouldn't we just create our own class and handle the payment processing ourselves?
upvoted 0 times
...
Fredric
1 months ago
I'd go with option D, it's the correct way to extend the PaymentProcessor and implement the pay method.
upvoted 0 times
Oliva
9 days ago
Yes, option D ensures that the pay method is properly implemented.
upvoted 0 times
...
Louis
26 days ago
It's important to adhere to the defined interface when implementing classes.
upvoted 0 times
...
Rosio
1 months ago
I agree, extending the PaymentProcessor interface is the way to go.
upvoted 0 times
...
Edelmira
1 months ago
Option D is the correct implementation for the CheckPaymentProcessor class.
upvoted 0 times
...
...
Jodi
2 months ago
I think the correct implementation is option A.
upvoted 0 times
...
Sylvia
2 months ago
Option A looks good to me, it's implementing the PaymentProcessor interface correctly.
upvoted 0 times
Hyun
28 days ago
User 2: I agree, it implements the PaymentProcessor interface correctly.
upvoted 0 times
...
Arlene
1 months ago
User 1: I think option A is the correct implementation.
upvoted 0 times
...
...

Save Cancel