What is the requirement for a class to be used as a custom - ProProfs Discuss
Topics
Products
Follow Us:

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: Feb 24, 2020

+ Answer
Request

5 Answers

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.

 

Souvik Ghosh

Souvik Ghosh

Answered Sep 01, 2018

Can you please please confirm which one is correct answer?

 

Prashant Kumar

Prashant Kumar

Answered Aug 25, 2018

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

 

ratan.paul

Ratan.paul

Answered Aug 22, 2018

Option C. looks more correct to me

 

csouza

Csouza

Answered Jul 25, 2018

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

ratan.paul

Ratan.paul

Replied on Aug 22, 2018

I think it should be c. Any top-level Apex class that has a default, no-argument constructor

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

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