You need to sign in to do that
Don't have an account?
Rajendra Prasad 44
Sobject doubt
I am confused by fallowing Sobject statement
'Account a = (Account)s' . Could you explain it?
'Account a = (Account)s' . Could you explain it?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
'Account a = (Account)s' in this line 's' is a variable which might hold the Account information and you are typecasting it to Account type.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi
As a caller, if you know that 's' will be an Account, you will typecast it as below:
As a caller, if you know that 's' will be a Contact, you will typecast it as below: