Question 1 of 30
In a Salesforce Apex class, you are tasked with creating a constructor that initializes a list of accounts based on a provided input. The constructor should accept a string parameter representing the account type and populate the list with accounts of that type from the database. Additionally, you need to implement a method that returns the total number of accounts in the list. Given the following code snippet, which implementation correctly fulfills these requirements?
apex
lic class AccountManager {
vate List accounts;
lic AccountManager(String accountType) {

Preparing for SalesForce CRT-450 Certified Platform Developer I? 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