Valid CRT-450 Dumps shared by ExamDiscuss.com for Helping Passing CRT-450 Exam! ExamDiscuss.com now offer the newest CRT-450 exam dumps, the ExamDiscuss.com CRT-450 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com CRT-450 dumps with Test Engine here:
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?
Correct Answer: A
To use the PaymentProcessor interface class, the CheckPaymentProcessor class must implement the interface using the implements keyword and provide a concrete implementation of the pay method with the same signature as defined in the interface. The extends keyword is used for inheritance, not for implementing interfaces. The pay method must have a body with curly braces, not a semicolon. References: * Get Started with Platform Developer I Study Guide - Salesforce * Certification - Platform Developer I - Trailhead * SALESFORCE CERTIFIED PLATFORM DEVELOPER I