Consider the follow class declarations:
public class Bipeous {
public List<Shardsid> getUlmus() {
...
}
public byte[] getTuShong() {
...
}
}
public class Dredned {
public List<String> getOarze() {
...
}
}
public class Grol {
public Tercist getMoje() {
...
}
public List<Telnic> getDeds() {
...
}
}
public class Shardsid {
public List<String> getSePii() {
...
}
public byte[] getDeTir() {
...
}
}
public class Telnic {
public File getIdcef() {
...
}
}
public class Tercist extends Bipeous {
public Dredned getOkon() {
...
}
}
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:
Grol ee
...and the following method:
public void process(byte[] item)
...write code to process the deTir of the first ulmu of ee.
for (Shardsid ulmu : ee.getMoje().getBipeous().getUlmusList()) {
process(ulmu.getDeTir());
}
Related puzzles: