exam questions

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 241 discussion

Actual exam question from Salesforce's CRT-450
Question #: 241
Topic #: 1
[All CRT-450 Questions]

A developer must implement a CheckPaymentProcessor class that provides check processing payment capabilities that adhere to what is 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?

  • A. public class CheckPaymentProcessor implements PaymentProcessor { public void pay(Decimal amount);
  • B. public class CheckPaymentProcessor implements PaymentProcessor { public void pay(Decimal amount){}
  • C. public class CheckPaymentProcessor extends PaymentProcessor { public void pay(Decimal amount){}
  • D. public class CheckPaymentProcessor extends PaymentProcessor { public void pay(Decimal amount);
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
smoota
12 months ago
Selected Answer: B
B Correct Ans
upvoted 4 times
...
diegojp
1 year, 3 months ago
ignore my previous comment, I messed up the letters with another question. Correct answer is B and the reasoning behind is still correct
upvoted 4 times
...
diegojp
1 year, 3 months ago
Selected Answer: C
I'm pretty sure it's C It's an interface so we have to use implements right? and it has to have a body so it cannot be D
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...