I came across multiple choice for sample exam But was not sure whether Custom Component comes under Model in MVC ? Choose two
Options were
Custom Object
Custom Component
Apex
Controller Extension
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityThe correct answers are Custom Object and Apex, assuming that by Apex the writer behind the question meant the Apex properties inside controllers and extensions.
I won't bore you with what you can already find on Wikipedia about MVC, so on to Salesforce!
Sobject
classes (e.g., OpportunityLineItem
, AccountTeamMember
) are the models. A model represents all the data transmitted between the page/component and the controller/extensions via properties.I would say that Custom Object and Custom Component are the correct answers. Apex and Controller Extension are Controllers.