function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SFDC_TTLSFDC_TTL 

Default constructor parameters

public AccMvmtController()

{

 

public AccMvmtController(ApexPages.standardController cont)

{

fromLogo=newAccount_Movement__c();

toLogo =newAccount_Movement__c();

isnotblank=false; 

}

 

publicAccMvmtController()

{

fromLogo=newAccount_Movement__c();

toLogo =newAccount_Movement__c();

isnotblank=false; 

}

}

 

how to pass values to the no-argument constructor in my test method?

 

Please suggest.

 

ryanjuptonryanjupton

Perhaps this would be better in the Apex Code Development board. Either way I'll take a stab at it. You're question doesn't really make sense because the whole purpose of a no arg constructor is to not have values passed to it. Usually the no arg constructor calls an overloaded constructor with default values, not the other way around. What exactly are you trying to accomplish?