Salesforce
CRT-450 · Question #111
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…
The correct answer is B. Public class CheckPaymentProcessor implements PaymentProcessor { public void pay(Decimal. See the full explanation below for the reasoning.
Question
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?
Options
- APublic class CheckPaymentProcessor implements PaymentProcessor { public void pay(Decimal
- BPublic class CheckPaymentProcessor implements PaymentProcessor { public void pay(Decimal
- CPublic class CheckPaymentProcessor extends PaymentProcessor { public void pay(Decimal
- DPublic class CheckPaymentProcessor extends PaymentProcessor { public void pay(Decimal
How the community answered
(48 responses)- A13% (6)
- B79% (38)
- C2% (1)
- D6% (3)
Community Discussion
No community discussion yet for this question.