Valid PDI Dumps shared by ExamDiscuss.com for Helping Passing PDI Exam! ExamDiscuss.com now offer the newest PDI exam dumps, the ExamDiscuss.com PDI exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com PDI dumps with Test Engine here:
(Full question statement) 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?
Correct Answer: D
Comprehensive and Detailed Explanation From Exact Extract: * D (Correct):Since Payment is avirtual class, it can beextended(not implemented like an interface), and its makePayment method is also virtual, which allows it to be overridden using the override keyword. The use of override is required to redefine a virtual or abstract method from the parent class. Reference:Apex Developer Guide - Inheritance and Polymorphism This maps to"Developer Fundamentals"in the PD1 exam, specifically aroundobject-oriented programming principles.