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

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:

Demetra
3 months ago
Because the CheckPaymentProcessor class should implement the PaymentProcessor interface, not extend it.
upvoted 0 times
...
Gennie
3 months ago
Why do you think option D is correct?
upvoted 0 times
...
Demetra
3 months ago
I disagree, I believe option D is the correct one.
upvoted 0 times
...
Gennie
3 months ago
I think the correct implementation is option A.
upvoted 0 times
...
Cory
3 months ago
Because the CheckPaymentProcessor class should implement the PaymentProcessor interface, not extend it.
upvoted 0 times
...
Leandro
4 months ago
Why do you think option D is correct?
upvoted 0 times
...
Cory
4 months ago
I disagree, I believe option D is the correct one.
upvoted 0 times
...
Shawnta
4 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
4 months ago
I think the correct implementation is option A.
upvoted 0 times
...
Emmett
4 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 months ago
Definitely, option A is the way to go.
upvoted 0 times
...
Diego
3 months ago
Yes, I agree. Option A correctly implements the interface.
upvoted 0 times
...
Emilio
4 months ago
I think option A is the correct implementation.
upvoted 0 times
...
...
Jesusita
4 months ago
Option A is the correct implementation. The class must implement the pay method defined in the interface.
upvoted 0 times
Anglea
4 months ago
D) Public class CheckPaymentProcessor extends PaymentProcessor { public void pay(Decimal amount) {} }
upvoted 0 times
...
Dorsey
4 months ago
C) Public class CheckPaymentProcessor extends PaymentProcessor { public void pay(Decimal amount); }
upvoted 0 times
...
Junita
4 months ago
B) Public class CheckPaymentProcessor implements PaymentProcessor { public void pay(Decimal amount); }
upvoted 0 times
...
Cherry
4 months ago
A) Public class CheckPaymentProcessor implements PaymentProcessor { public void pay(Decimal amount) {} }
upvoted 0 times
...
...

Save Cancel