nerdexam
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)
  • A
    13% (6)
  • B
    79% (38)
  • C
    2% (1)
  • D
    6% (3)

Community Discussion

No community discussion yet for this question.

Full CRT-450 Practice