Change Contents of the Bubble
View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

FinalExam Review Spring2006: Explain the Disease Simulation

Questions? Answers? Comments? Comments on Questions or Answers?
(Back to Final Exam Review Spring2006)



Even more guessing!

A. heading, XPos, YPos, speed, simulation and infection

B. getAgents(), add(), remove(), openFrames(), openFile(), run(), endStep(), lineForFile(), closeFile() and setUp()

C.(DiseaseSimulation)(this.simulation()).openFrames()

I question C's answer the most. Anyone know the answer to it? Help would be great.

What about show() and replay()?

No, not show() and reply(). On (C), I think you need to think about parentheses and getting the object vs. calling the method. Mark Guzdial

Ah, I see why it's not show() and replay() now :)

That last comment is about (c). It's not quite right. Mark Guzdial

C. this.simulation.frames

i think this may be the answer?

For C i think it should be:
((Agent) (this.simulation)).frames



I think I might be confused....
A closed arrow = inheritance from the class above
An open arrow = no inheritance, but the classes do understand the other's methods?
A line = no inheritance, the classes have only a relation to each other?

(plus sign)something() = a method that the class understands
(bar)something = a variable?
(number sign)something = a list of variables?

Could someone help clear this up for me?

the closed arrow and open arrow definitions are right. I don't know about the rest.



Link to this Page