Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: validbest

Exam PDI All Questions
Exam PDI All Questions

View all questions & answers for the PDI exam

Salesforce Developers PDI Question # 24 Topic 3 Discussion

PDI Exam Topic 3 Question 24 Discussion:
Question #: 24
Topic #: 3

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.

apex

Copy

public interface PaymentProcessor {

void pay(Decimal amount);

}

Which is the correct implementation to use the PaymentProcessor interface class?


A.

apex

Copy

public class CheckPaymentProcessor implements PaymentProcessor {

public void pay(Decimal amount) {}

}


B.

apex

Copy

public class CheckPaymentProcessor implements PaymentProcessor {

public void pay(Decimal amount);

}


C.

apex

Copy

public class CheckPaymentProcessor extends PaymentProcessor {

public void pay(Decimal amount);

}


D.

apex

Copy

public class CheckPaymentProcessor extends PaymentProcessor {

public void pay(Decimal amount) {}

}


Get Premium PDI Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.