22.2k views
0 votes
Which of the following are part of the control layer in the MVC model?

1) Apps
2) List Views
3) VisualForce Controllers
4) APEX classes

1 Answer

3 votes

Final answer:

In MVC architecture, VisualForce Controllers and APEX classes are components of the control layer, handling user input and the flow between the model and the view.

Step-by-step explanation:

In the Model-View-Controller (MVC) architecture, the control layer is responsible for handling the user input and updating the model and the view. Of the options provided:

  • Apps are generally too broad to be part of the control layer specifically, as they can encompass all layers of MVC.
  • List Views are part of the view layer, as they deal with the presentation of the data.
  • VisualForce Controllers are indeed part of the control layer in Salesforce's MVC framework. They handle user input and work with the Apex code to update the model and the view.
  • APEX classes can contain business logic and can be part of the control layer when they're used to handle requests.

Hence, VisualForce Controllers and APEX classes are part of the control layer in the MVC model.

User Muers
by
7.6k points