A developer has two custom controller extensions where each has a save() method. Which save() method will be called for the following Visualforce page?
You are right, answer is A. This is followed link about that. https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_extension.htm
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_extension.htm
Overrides are defined by whichever methods are defined in the “leftmost” extension, or, the extension that is first in the comma-separated list. Thus, the save method of extensionA is overriding the method of extensionB.
Overrides are defined by whichever methods are defined in the “leftmost” extension, or, the extension that is first in the comma-separated list: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_extension.htm
I think it is C because standardController is coming first and has a Save action.
If it had not then it would have been the action of the first declared extension.
upvoted 2 times
...
This section is not available anymore. Please use the main Exam Page.CRT-450 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.
ryuu
Highly Voted 2 years, 10 months agoGanmook
2 years, 8 months agotapasroy
2 years agonoox
Highly Voted 2 years, 3 months agoBrucePark
9 months, 2 weeks agoirina_735
Most Recent 7 months, 3 weeks agoApexMike
1 year, 7 months agoJCTheGenius
2 years, 8 months ago