dudemanbagel2565 dudemanbagel2565
  • 30-09-2017
  • Computers and Technology
contestada

When defining an array of class objects, how do you pass arguments to the constructor for each object in the array?

Respuesta :

rsmith6559
rsmith6559 rsmith6559
  • 01-10-2017
Basically, the array[ index ] is the name of the object so when you  populate the array you'd have statement[s] like:

array[ index ] = new ClassName( arg0, arg1, arg2 );
Answer Link

Otras preguntas

How is the voltage of the power supply for a series circuit calculated?
1.Give an example of a limiting factor. Describe in detail how this factor limits population growth
Name the Following Compounds: a. COb. PCl3c. P4Br8d. N2S6e. H2Of. Si9F7
Why did Dalton think it was important to use his system of symbols for the chemical elements.
Find the diameter of the circle with the given measurement. Leave answer in terms of pi.A=100pi
What country does Greenland belong to?
How did the Aztecs adapt to their environment
civil right movement facts
how much of a brand A fruit punch (35% fruit juice) must be mixed with 9L of grape juice to create a mixture containing 74% fruit juice?
How did the Aztecs adapt to their environment