Activity Forums Salesforce® Discussions Why we use the method of our Salesforce Test class to be Static and Void?

  • Udit

    Member
    January 31, 2020 at 12:55 pm

    Hello Anjali,

    By creating our method static and void in Test class, we don't need to create any object of that class. We just directly call the method from the class name.

    • This reply was modified 4 years, 10 months ago by  Forcetalks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos