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

how to call a method with parameter Sobject

i have a method 
public void Genericobject(Sobject obj)

How to call this method?
Well i am calling like this 
a.Genericobject(Account acc)

Thanks in advance
        but an error
expecting a right parentheses, found 'acc'                   
suresh dupadasuresh dupada
a.Genericobject(new Account());
Account acc=new Account();