79.1k views
5 votes
Which of the following correctly describes how the platform features map to the MVC pattern?

1) Model: Standard and Custom objects; View: Pages and Components; Controller: Standard and Custom Controllers
2) Model: APEX Classes; View: Pages and Components; Controller: APEX Triggers
3) Model: Standard and Custom objects; View: CSS and images; Controller: Standard and Custom Controllers
4) Model: Javascript code; View: Visualforce Pages; Controller: Custom APEX code

User Toxaris
by
8.5k points

1 Answer

5 votes

Final answer:

The correct answer is option 2: Model: APEX Classes; View: Pages and Components; Controller: APEX Triggers.

Step-by-step explanation:

The correct answer is option 2: Model: APEX Classes; View: Pages and Components; Controller: APEX Triggers.

The Model, View, Controller (MVC) pattern is a software design pattern commonly used in web application development. In Salesforce, the Model represents the data and its manipulation, the View represents the user interface components, and the Controller handles the logic and communication between the Model and View.

In this case, the APEX Classes serve as the Model, as they handle the data and its manipulation. The Pages and Components represent the View, as they are responsible for the user interface. And the APEX Triggers act as the Controller, as they handle the logic and communication between the Model and View

User Bloodbee
by
8.1k points