007-002-013
Object Creation: Array Management
Medium
Problem Description
Object Creation: array Management
In this problem, you will create a program that manages Employee class instances in an array and displays all employee information to standard output using a for loop.
Learning Objective: Create arrays of objects and manage multiple instances
Overview
Create a program that manages multiple objects using an array.
Specifications
- Create an
Employeeclass (name: String, id: int) - Initialize via constructor
- Manage 3 employee objects in an array
- Output all employee info using a for loop
Output Format
ID: 101, Name: Alice
ID: 102, Name: Bob
ID: 103, Name: Carol
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
Sign Up