Consider the follow class declarations:
public class Bidal extends Flepriack {
public List<Poned> getBibes() {
...
}
public List<Splis> getEnCus() {
...
}
}
public class ClaEbian {
public File getPrics() {
...
}
}
public class Flepriack {
public List<String> getOnho() {
...
}
}
public class Grecliunt {
public Pogreax getFril() {
...
}
public byte[] getDirm() {
...
}
}
public class Osshe {
public String getCelo() {
...
}
}
public class Ostcor extends Phec {
public Osshe getIlac() {
...
}
}
public class Phec {
public UinFrinbruc getTro() {
...
}
public List<Grecliunt> getSesors() {
...
}
}
public class Pogreax extends Tadeic {
public List<ClaEbian> getMeChros() {
...
}
}
public class Poned {
public Ostcor getEaNucex() {
...
}
public File getCeirc() {
...
}
}
public class Splis {
public List<String> getCil() {
...
}
}
public class Tadeic {
public String getPuoul() {
...
}
public byte[] getEaep() {
...
}
}
public class UinFrinbruc {
public String getOdMex() {
...
}
}
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:
Bidal fla
...and the following method:
public void process(byte[] item)
...write code to process the eaep of the first sesor of each bibe of fla.
for (Grecliunt sesor : fla.getBibes().get(0).getEaNucex().getPhec().getSesorsList()) {
process(sesor.getFril().getTadeic().getEaep());
}
Related puzzles: