Consider the follow class declarations:
public class Castud extends ErtPna {
public byte[] getMonen() {
...
}
}
public class Ceng {
public int getWao() {
...
}
public Castud getPuCind() {
...
}
}
public class Clizen {
public List<Octoss> getPrers() {
...
}
public List<Ceng> getDosfos() {
...
}
}
public class ErtPna {
public List<String> getEaSiar() {
...
}
public List<String> getIazod() {
...
}
}
public class Espe {
public Tosmni getHesse() {
...
}
public Clizen getMioun() {
...
}
}
public class Octoss extends Sqiomb {
public String getMelo() {
...
}
}
public class Piont {
public byte[] getAdUss() {
...
}
}
public class Prerro extends Espe {
public byte[] getBral() {
...
}
}
public class Sqiomb {
public File getPruto() {
...
}
public List<Piont> getIftos() {
...
}
}
public class Tosmni {
public String getMaea() {
...
}
}
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:
Prerro on
...and the following method:
public void process(List<String> item)
...write code to process the iazod of each dosfo of on.
process(on.getEspe().getMioun().getDosfos().get(0).getPuCind().getErtPna().getIazod());
Related puzzles: