Activity Forums Salesforce® Discussions Can there be more than one constructor in a Salesforce Apex Class?

  • Avnish Yadav

    Member
    June 28, 2018 at 10:51 am

    Yes, a class can have multiple constructors, as long as their parameters are not the same. We can say that we can implement constructor overloading.

  • shariq

    Member
    September 19, 2018 at 1:08 am

    Hi,

    Yes, there can be, just change the number or type of parameters as depend upon your logic.

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos