Salesforce
CRT-450 · Question #167
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) {…
The correct answer is A. Public class CreditcardPayment extends Payment {. See the full explanation below for the reasoning.
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 {
How the community answered
(28 responses)- A82% (23)
- B11% (3)
- C4% (1)
- D4% (1)
Community Discussion
No community discussion yet for this question.