Question: In Unit 5 , you came up with a class of your own choice relevant to you or your community. In the last lesson 6
In Unit you came up with a class of your own choice relevant to you or your community. In the last lesson you created an array to hold objects of your class. Copy your array of objects code from the last lesson In this challenge, add a loop to traverse your array to print out each object.
Copy your class from the last lesson below. It should create an array of objects of your class and initialize them to new objects. Instead of calling their print methods individually, write a loop that traverses your array to print out each object using the index i
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
