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 5, you came up with a class of your own choice relevant to you or your community. In the last lesson 6.1, you created an array to hold objects of your class. Copy your array of objects code from the last lesson 6.1. In this challenge, add a loop to traverse your array to print out each object.
Copy your class from the last lesson 6.1 below. It should create an array of 3 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!