Professional Documents
Culture Documents
COMP1549 Week 5
COMP1549 Week 5
COMP1549 Week 5
Dr Markus Wolf
@Override
public void write(String text) {
System.out.println("Writing the following: " + text);
}
}
} Simply prints the result
of the calculation
requires calculatorModule;
}
This module uses the
calculatorModule we created
In addition to adding the
requires statement, we also
need to add the module to
the build path
A reference to our
calculatorModule
Markus A. Wolf 42
COMP1549: Advanced Programming
Indexed Properties
◉ If properties have a one to many
relationship with the host object they
must be exposed as an array and have
appropriate index methods
It’s a non-visual
component