Question: QUESTION 3 (a) The program Q3, listed below, creates an array of 3 Computers. Your task is to draw diagrams of the state of the
QUESTION 3 (a) The program Q3, listed below, creates an array of 3 Computers. Your task is to draw diagrams of the state of the array after execution of the line Computer[] myArray = \{new Computer ("Dell", 1000.00), new Computer ("Apple", 1350.00), new Computer ("IBM", 1200.00)\}: and, again, after execution of the code: for(int i=0; is myArray.length; i++) myArray[i].setMake("Apple"): (6 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
