victorabraham
4/21/2020 - 10:34 PM

ErrorController Correct

public class ErrorController {
private Account acc{get;set;}
private List accList{get;set;}

    public errorController()
    {
        //acc is initalized as a new instance of Account
        acc= new Account();
        system.debug(acc.Name); 
        //accList is initialized as a new list of Accounts
        accList = new List();
        accList.add(acc); 
    }
}