You need to sign in to do that
Don't have an account?

Error: Compile Error: Variable does not exist: Name at line 7 column 9
Hi ,
Help out with this problem
public class Acc1
{
Account acc=new Account();
public void accmethod()
{
acc.Name='deva';
}
}
Help out with this problem
public class Acc1
{
Account acc=new Account();
public void accmethod()
{
acc.Name='deva';
}
}
Try this.
public class Acc1
{
public void accmethod()
{
Account acc=new Account();
acc.Name='deva';
}
}
Cheers!
Nag Arjun
Try this or the above as mentioned.
public class Acc1{
//constructor - space allocation for new account.
public Acc1(){
Account acc=new Account();
}
//when called it populates the acc name as 'deva'
public void accmethod(){
acc.Name='deva';
}
}
Important :
If you have received the answer which you are looking for, Please mark it as a Solution, this will help others to find the resolution of problem with ease.
More, you can make the Developers of the Community smile by appreciating the answer with the "Like" Button. We would love to help you again.
Thank You
Gautam Singh
Blog - http://singhgautam02.blogspot.in/
Me - about.me/singhgautam