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 7 Question 48 Discussion

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

Comments

Kristofer
3 hours ago
Hmm, good point. The interface documentation doesn't specify whether the pay() method needs to be concrete or not. I'd say option A is the most straightforward implementation, as it directly implements the interface's pay() method, even if it's empty.
upvoted 0 times
...
Janine
2 days ago
This is a tricky question. I'm not sure if I fully understand the requirements of the PaymentProcessor interface. Does the interface require the concrete implementation to have a concrete implementation of the pay() method, or can it be abstract?
upvoted 0 times
...

Save Cancel