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 7 Question 84 Discussion

Actual exam question for Salesforce's DEX-450 exam
Question #: 84
Topic #: 7
[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:

Nu
2 months ago
Wait, are we supposed to pay the exam question for processing too? I better bring some extra cash just in case.
upvoted 0 times
...
Dusti
2 months ago
Hmm, this question is a real 'pain in the payload' if you ask me. I hope the real exam isn't as tricky as this one!
upvoted 0 times
Xochitl
2 months ago
B) Public class CheckPaymentProcessor implements PaymentProcessor { public void pay(Decimal amount);
upvoted 0 times
...
Delisa
2 months ago
A) Public class CheckPaymentProcessor implements PaymentProcessor { public void pay(Decimal amount) {}
upvoted 0 times
...
...
Rosalind
3 months ago
Option C looks a bit suspicious. Extending the interface doesn't seem like the right approach here. We should be implementing the interface instead.
upvoted 0 times
Kenda
2 months ago
D) Public class CheckPaymentProcessor extends PaymentProcessor { public void pay(Decimal amount) {} }
upvoted 0 times
...
Brandon
2 months ago
B) Public class CheckPaymentProcessor implements PaymentProcessor { public void pay(Decimal amount); }
upvoted 0 times
...
Leonida
2 months ago
A) Public class CheckPaymentProcessor implements PaymentProcessor { public void pay(Decimal amount) {} }
upvoted 0 times
...
...
Gary
3 months ago
Option D seems to be the correct answer. We need to extend the PaymentProcessor interface and provide the implementation for the pay method.
upvoted 0 times
Lisandra
3 months ago
Yes, extending the interface is the way to go. Option D is the right choice.
upvoted 0 times
...
Slyvia
3 months ago
Option D is the correct one. We should extend the PaymentProcessor interface.
upvoted 0 times
...
...
Celeste
4 months ago
I'm not sure about option B. Declaring the pay method without an implementation doesn't seem right. Shouldn't we have the method body as well?
upvoted 0 times
Valentine
3 months ago
C) Public class CheckPaymentProcessor extends PaymentProcessor { public void pay(Decimal amount); }
upvoted 0 times
...
Alyce
3 months ago
A) Public class CheckPaymentProcessor implements PaymentProcessor { public void pay(Decimal amount) {} }
upvoted 0 times
...
...
Wade
4 months ago
I'm not sure, but I think option C might be a valid implementation as well.
upvoted 0 times
...
Noel
4 months ago
Option A looks good to me. Implementing the interface and providing the implementation for the pay method is the way to go.
upvoted 0 times
Dante
2 months ago
Exactly, option A is the way to go for implementing the PaymentProcessor interface.
upvoted 0 times
...
Micah
3 months ago
A
upvoted 0 times
...
Gerald
3 months ago
No, option B is incorrect because it is missing the implementation for the pay method.
upvoted 0 times
...
Bettye
3 months ago
I agree, Option A is the correct implementation. It follows the interface and provides the necessary method implementation.
upvoted 0 times
...
Myra
3 months ago
Option A looks good to me. Implementing the interface and providing the implementation for the pay method is the way to go.
upvoted 0 times
...
Evan
3 months ago
B
upvoted 0 times
...
Carlota
3 months ago
Yes, option A is the correct implementation. It implements the PaymentProcessor interface.
upvoted 0 times
...
Claudia
4 months ago
A
upvoted 0 times
...
...
Ciara
4 months ago
I agree with Fannie, I also think option A is the right choice.
upvoted 0 times
...
Rebeca
4 months ago
I disagree, I believe option D is the correct implementation.
upvoted 0 times
...
Fannie
4 months ago
I think the correct implementation is option A.
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