Passing by Reference

This program has the main in ReferenceQ.java, and it calls a method in the Train class that manipulates the objects. Depot holds a Train inside it, make sure you follow along what this program does because you will get on like this on your exam.