ExamGecko
Question list
Search
Search

Question 19 - AD0-E717 discussion

Report
Export

How can a developer override a core class method in Adobe Commerce?

--> B. --> C

A.
Answers
A.
Suggested answer: A

Explanation:

The preference element in di.xml allows specifying a custom class that will be used instead of the original class when creating an object1.This can be used to override a core class method by extending the original class and overriding the method in the custom class1.The rewrite and argument elements are not valid for overriding core class methods in di.xml1.

asked 02/10/2024
Francisco Sanchez Valdes
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first