What is the requirement for a class to be used as a custom - ProProfs Discuss
Cancel
TopicsDown
Products Down
Follow Us:
FacebookTwitter
Advertisement

What is the requirement for a class to be used as a custom visualforce controller?



A. Any top-level Apex class that has a constructor that returns a PageReference
B. Any top-level Apex class that implements the controller interface
C. Any top-level Apex class that has a default, no-argument constructor
D. Any top-level Apex class that extends a PageReference

This question is part of Platform Dev I
Asked by Csouza, Last updated: Sep 22, 2020

+ Answer
Request
Question menu
Vote up Vote down

6 Answers

r.gargnov4

r.gargnov

r.gargnov4
R.gargnov

Answered May 06, 2020

C is Correct.

upvote downvote
Reply 

J. Shatner

J. Shatner

J. Shatner
J. Shatner, Content writer, Boston

Answered Sep 19, 2018

The requirement to this is letter C. It will not be possible to create a custom controller that comes with different parameters. Creating this is easy as long as you know the version settings that you want to set. Most people would choose the most recent version but if you need an older version, you can specify that as well.

Enter the APEX code that will be used for the class. Take note that an APEX class can hold up to a million characters. Click save to check if you have edited it correctly. You can make further changes and editing if you believe that it is still not working the best way possible.

upvote downvote
Reply 

Souvik Ghosh

Souvik Ghosh

Souvik Ghosh
Souvik Ghosh

Answered Sep 01, 2018

Can you please please confirm which one is correct answer?

upvote downvote
Reply 

Prashant Kumar

Prashant Kumar

Prashant Kumar
Prashant Kumar

Answered Aug 25, 2018

C. Any top-level Apex class that has a default, no-argument constructor

upvote downvote
Reply 

ratan.paul22

ratan.paul

ratan.paul22
Ratan.paul

Answered Aug 22, 2018

Option C. looks more correct to me

upvote downvote
Reply 

csouza718

csouza

csouza718
Csouza

Answered Jul 25, 2018

Any top-level Apex class that implements the controller interface
upvote downvote 1
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.