Exam PDI Topic 4 Question 39 Discussion

Actual exam question for Salesforce's PDI exam
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?

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

by Jim at Jun 15, 2025, 12:57 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

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.

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 

日本語 Deutsch 繁体中文 한국어