You need to sign in to do that
Don't have an account?
siliveru venkatesh
Error: Method does not exist or incorrect signature: void ifex1() from the type ifex1
Hi All I am facing This Error any one can help me.
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
public class ifex1
{
public integer num1,num2,result;
public ifex1()
{
num1 =10;
num2 =20;
result =num1 +num2;
system.debug('Addition :'+result);
result =num1 -num2;
system.debug('subtraction :'+result);
result =num1 *num2;
system.debug('Multiplication :'+result);
if( num2>0 )
{
result =num1 /num2;
system.debug('Division :'+result);
}
}
}
It seems you are calling constructor like method.
public ifex1()
is a constructor, not method.
So, stop calling it, it automatically initializes.
Thanks,
Aman
Thanks
Please mark the answer as best if that helps.
Thanks
Aman
It seems, by mistake you mark your answer as best instead of mine.
Kindly correct it.
Thanks,
Aman