SalesforceSalesforce
PDI · Question #167
PDI Question #167: Real Exam Question with Answer & Explanation
Sign in or unlock PDI to reveal the answer and full explanation for question #167. The question stem and answer options stay visible for context.
Submitted by stefanr· Apr 18, 2026Logic and Process Automation
Question
A developer must create a CreditcardPayment class that provides an implementation of an existing Payment class. Public virtual class Payment { public virtual void makePayment(Decimal amount) { /*implementation*/ } } Which is the correct implementation?
Options
- APublic class CreditcardPayment extends Payment {
- BPublic class CreditCardPayment implements Payment {
- CPublic class CreditCardPayment extends Payment {
- DPublic class CreditCardPayment implements Payment {
Unlock PDI to see the answer
You've previewed enough free PDI questions. Unlock PDI for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Apex#Classes#Inheritance#OOP