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?
Suggested Answer: A
Get Premium DEX-450 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
12 comments · newest first
SH
Shenika
12 months ago
Wait, can you really use "virtual" in that context?
AL
Allene
12 months ago
Totally agree with A, it's the right syntax!
FE
Felix
12 months ago
Isn't it weird that D uses "implements" but has "override"?
EA
Earleen
1 year ago
I think it's actually C.
CA
Caitlin
1 year ago
Option A looks correct to me.
DE
Derick
1 year ago
I feel like "override" is the right keyword here, but I can't recall if it should be used with "extends" or "implements."
ME
Merilyn
1 year ago
I remember practicing a similar question where we had to implement an interface. I think "implements" is used for interfaces, not classes.
DO
Dominque
1 year ago
I think the class should extend Payment, but I'm not sure if I should use "override" or "virtual" for the method.
AN
Andrew
1 year ago
I thought "virtual" was for defining methods in interfaces, so I'm leaning towards option A or C for extending the class.
SH
Shantell
1 year ago
Hmm, I'm not too familiar with the different Magento APIs. I'll have to review the documentation on each one to decide which one is most suitable for this use case.
CE
Cecil
1 year ago
Hmm, this seems straightforward. The key is figuring out what permission the Sales Manager needs to subscribe to the report.
IV
Ivette
1 year ago
I'm a little confused by the difference between an Application Group and an Application Filter. I'll need to review those concepts before deciding.