M
Michael Gorbach
Hi,
I'm writing a simulation program and i have main form which controls
the simulation ... it has a private field which is the simulation
object (type simulation). I am using two subforms for different views
of the simulation, each of which is inside the main form. The
simulation is passed into these subforms view constructor from the main
form like so:
Tableform tableform = new Tableform(simulation).
What is being passed here?
It is not set to be a reference parameter, but it feels like an object
reference is being passed because which the mainform executes
simulation.run(100), the simulations in the two subforms run and fire
their events.
I'm writing a simulation program and i have main form which controls
the simulation ... it has a private field which is the simulation
object (type simulation). I am using two subforms for different views
of the simulation, each of which is inside the main form. The
simulation is passed into these subforms view constructor from the main
form like so:
Tableform tableform = new Tableform(simulation).
What is being passed here?
It is not set to be a reference parameter, but it feels like an object
reference is being passed because which the mainform executes
simulation.run(100), the simulations in the two subforms run and fire
their events.