Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I came across multiple choice for sample exam But was not sure whether Custom Component comes under Model in MVC ? Choose two

Options were

  1. Custom Object

  2. Custom Component

  3. Apex

  4. Controller Extension

share|improve this question
add comment

2 Answers 2

sf.dev, I'm not sure about the sample question, but I can probably answer your question about whether a custom component counts as a "model" in the MVC framework. I won't bore you with what you can already find on Wikipedia about MVC, so on to Salesforce!

Visualforce pages and components are views. Apex controllers and extensions are all considered controllers. And your sObject classes (e.g., OpportunityLineItem, AccountTeamMember) are the models.

share|improve this answer
    
This doesn't really line up with the question, but that's more a reflection of the sample exams out there and why they should be avoided. –  LaceySnr Jun 30 at 22:00
add comment

I would say that Custom Object and Custom Component are the correct answers. Apex and Controller Extension are Controllers.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.