Utils in the Smarts program.
do not need constructors, Other classes do. Constructors look like this:
new. For example, to create a new
Brain, you would do something like
new Brain(ui, sensor, effector, index), where
ui, sensor, effector,
and index are variables bound to UI, Sensor, Effector objects
and some int respectively.
new), it returns an
object that is an instance of the class, but, unlike a method,
the constructor does not have an explicit return statement.