Exam PDI Topic 4 Question 39 Discussion
Actual exam question for Salesforce's PDI exam
Question #: 39
Topic #: 4
Question #: 39
Topic #: 4
A lead developer creates a virtual class called "OrderRequest". Consider the following code snippet:
How can a developer use the OrderRequest class within the CustomerOrder class?
How can a developer use the OrderRequest class within the CustomerOrder class?
Suggested Answer: C Vote an answer
In Apex, a class can extend a virtual class (similar to abstract classes in Java) by using theextendskeyword.
This allows the subclass (CustomerOrder) to inherit properties and methods from the parent virtual class (OrderRequest).
Reference:Inheritance in Apex
This allows the subclass (CustomerOrder) to inherit properties and methods from the parent virtual class (OrderRequest).
Reference:Inheritance in Apex
by Jim at Jun 15, 2025, 12:57 PM
Contact Us
If you have any question please leave me your email address, we will reply and send email to you in 12 hours.
Our Working Time: ( GMT 0:00-15:00 ) From Monday to Saturday
Support: Contact now
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).