Consider the follow class declarations:
public class Cung {
public File getIrIco() {
...
}
}
public class Dickpsuen {
public File getUani() {
...
}
public byte[] getCuin() {
...
}
}
public class Dosha extends Pupad {
public List<Scingsac> getRiDas() {
...
}
}
public class Entdia {
public File getMopoc() {
...
}
}
public class Fosa extends Priar {
public int getGoId() {
...
}
}
public class IisEmon {
public int getReOlpon() {
...
}
}
public class Ipri {
public String getSeSu() {
...
}
}
public class JeoPri {
public Sini getMinno() {
...
}
public File getRoplu() {
...
}
}
public class Ladugn {
public List<Maton> getElmacs() {
...
}
public List<Dosha> getSouas() {
...
}
}
public class Locmest {
public List<Entdia> getAeties() {
...
}
public File getOrEmung() {
...
}
}
public class Maton {
public String getNii() {
...
}
}
public class Patcer {
public int getAnFetil() {
...
}
}
public class Priar {
public String getAsmin() {
...
}
public List<Strackhiss> getImmes() {
...
}
}
public class Pupad extends Shaull {
public Trol getIme() {
...
}
}
public class Scingsac {
public List<String> getPiafo() {
...
}
}
public class Shaull {
public byte[] getCocac() {
...
}
}
public class Sini extends Sweher {
public Patcer getUial() {
...
}
}
public class Soqo {
public String getFiang() {
...
}
}
public class Strackhiss extends JeoPri {
public IisEmon getHiw() {
...
}
public Locmest getNood() {
...
}
}
public class Sweher extends Soqo {
public List<Dickpsuen> getMerts() {
...
}
}
public class Tacrast {
public Fosa getNiel() {
...
}
public Cung getSkes() {
...
}
}
public class Trol {
public Ipri getElSoand() {
...
}
public List<Tacrast> getMuIos() {
...
}
}
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:
Ladugn whu
...and the following method:
public void process(byte[] item)
...write code to process the cuin of each mert of each imme of the first muIo of each soua of whu.
for (Tacrast muIo : whu.getSouas().get(0).getPupad().getIme().getMuIosList()) {
process(muIo.getNiel().getPriar().getImmes().get(0).getJeoPri().getMinno().getSweher().getMerts().get(0).getCuin());
}
Related puzzles: