Questions tagged [constructor]
The constructor tag has no usage guidance.
6
questions
1
vote
1
answer
2k
views
Any risk in recompiling all Apex classes in org?
Running into an issue with a deployment, getting a ton of errors of the following flavor:
line -1, column -1: Dependent class is invalid and needs recompilation: Class MeansRegisterCustomerTest : ...
0
votes
2
answers
987
views
Defining Constructor [closed]
When I try to run my codes they keep on giving me an error saying Constructor not Define [testFBInt].<Constructor>(). I do not understand whats the problem and why it keep on giving me that ...
3
votes
1
answer
3k
views
Call Parametrized constructor using Type.newInstance()?
I am designing a solution where it should be flexible to add handlers using configuration.
So I am saving the handler class name in the custom metadata record and then would be instantiating it using ...
1
vote
2
answers
3k
views
how to call constructor class method by calling constructor
i want to load wrapper class with one shot, but I couldn't able. may be still my oops skills are weak. i feel we can write much better way
public class WrapperA{
public Id sobjerecid;
public ...
0
votes
1
answer
77
views
Apex Test - setSelected() is empty!
Hi I'm having an issue with a non-static test method which is passed a list of records from the standardSetController. I've called setSelected() and an instance of the non-static method but when I'm ...
0
votes
3
answers
2k
views
Use Type class to call parameterized constructor
Using this to get below working:
public class t12345 implements Database.Batchable<sObject> {
String query;
Boolean xyz;
public t12345(String query){
...