Question 1 of 30
In a Salesforce Apex class, you are tasked with creating a constructor that initializes a list of Account records based on a specific criteria. You want to ensure that the constructor can accept a parameter that specifies the type of accounts to retrieve (e.g., \'Active\', \'Inactive\'). Given the following Apex class structure, which implementation of the constructor correctly initializes the list of accounts based on the provided parameter?
apex
lic class AccountManager {
lic List accounts { get; set; }
Constructor implementation

Preparing for SalesForce DEV-501 Apex and Visualforce Controllers? Now land the interview.

73% of qualified candidates get rejected because of weak resumes. Build an ATS-optimized, recruiter-ready resume in under 5 minutes - free to start.

Build My Resume Free