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 CRT-450 Topic 4 Question 58 Discussion

Actual exam question for Salesforce's CRT-450 exam
Question #: 58
Topic #: 4
[All CRT-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:

Cory
7 days ago
Because the CheckPaymentProcessor class should implement the PaymentProcessor interface, not extend it.
upvoted 0 times
...
Leandro
28 days ago
Why do you think option D is correct?
upvoted 0 times
...
Cory
1 months ago
I disagree, I believe option D is the correct one.
upvoted 0 times
...
Shawnta
1 months ago
Haha, C and D are just silly. You can't extend an interface, that's not how it works!
upvoted 0 times
...
Leandro
1 months ago
I think the correct implementation is option A.
upvoted 0 times
...
Emmett
1 months ago
I agree with Jesusita. Option A is the way to go. It's the only one that correctly implements the interface.
upvoted 0 times
Elke
3 days ago
Definitely, option A is the way to go.
upvoted 0 times
...
Diego
9 days ago
Yes, I agree. Option A correctly implements the interface.
upvoted 0 times
...
Emilio
15 days ago
I think option A is the correct implementation.
upvoted 0 times
...
...
Jesusita
1 months ago
Option A is the correct implementation. The class must implement the pay method defined in the interface.
upvoted 0 times
Anglea
23 days ago
D) Public class CheckPaymentProcessor extends PaymentProcessor { public void pay(Decimal amount) {} }
upvoted 0 times
...
Dorsey
24 days ago
C) Public class CheckPaymentProcessor extends PaymentProcessor { public void pay(Decimal amount); }
upvoted 0 times
...
Junita
29 days ago
B) Public class CheckPaymentProcessor implements PaymentProcessor { public void pay(Decimal amount); }
upvoted 0 times
...
Cherry
1 months ago
A) Public class CheckPaymentProcessor implements PaymentProcessor { public void pay(Decimal amount) {} }
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