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
ran67ran67 

Test case help,

hi

how to  declare these part in testcase

Public  class test

{

public test(string  color,string item)

{

this.color=color;

this.item=item;

}

}

how to decalre the Parametrized constructor in testcase ........please help me

 

Prady01Prady01

Test t = new test(Red,Item0);

 

Hope it helps!!

asish1989asish1989

Hi

    put single quote.....

         Test t = new test('Red','Item0');

 

         It will work ...

 

 

 

Thanks

asish