Consider the follow class declarations:
public class Eero {
public File getSadge() {
...
}
public Janslost getThie() {
...
}
}
public class Esoc {
public byte[] getHass() {
...
}
}
public class Ioca {
public byte[] getDed() {
...
}
}
public class Janslost extends Plia {
public File getRish() {
...
}
}
public class Plia {
public byte[] getPasid() {
...
}
public byte[] getHepol() {
...
}
}
public class Spihic {
public List<Eero> getUlNis() {
...
}
public List<Ioca> getThauns() {
...
}
public Esoc getBasm() {
...
}
}
Draw a diagram showing the class relationships.
You only need to diagram the classes listed above. You only need to show the name of each class; do not show their methods or properties.
Draw arrows between the classes that have relationships, and label each arrow with one of the following:
Make sure your arrows point in the correct direction!
Given the following variable:
Spihic re
...and the following method:
public void process(byte[] item)
...write code to process the hepol of the first ulNi of re.
for (Eero ulNi : re.getUlNisList()) {
process(ulNi.getThie().getPlia().getHepol());
}
Related puzzles: