Consider the follow class declarations:
public class AcoLoste extends SpiBeactbin {
public String getAchas() {
...
}
}
public class Cengre {
public int getCroul() {
...
}
public int getClope() {
...
}
}
public class CipBrewpar {
public File getNoTraw() {
...
}
public List<Sluiss> getLonas() {
...
}
}
public class Deapsi {
public File getMeOerk() {
...
}
}
public class Esbli {
public File getOng() {
...
}
}
public class Eslo {
public List<Deapsi> getAssnos() {
...
}
public List<Firt> getEadics() {
...
}
public Wrolmor getGiode() {
...
}
}
public class Fancho {
public CipBrewpar getNiong() {
...
}
public byte[] getOetch() {
...
}
}
public class Firt extends Trir {
public List<String> getHedpe() {
...
}
}
public class Glieqim extends Teuax {
public Icpres getPhak() {
...
}
}
public class Icpres extends Esbli {
public Sesm getEes() {
...
}
public List<MioEstrep> getSkands() {
...
}
}
public class MioEstrep {
public String getThi() {
...
}
}
public class PraIptcal {
public List<Glieqim> getOirs() {
...
}
public int getVaOnha() {
...
}
}
public class Schimas {
public byte[] getPiBospe() {
...
}
}
public class Sesm {
public List<String> getBia() {
...
}
}
public class Sluiss extends AcoLoste {
public Eslo getNax() {
...
}
}
public class SpiBeactbin {
public String getBiBrec() {
...
}
}
public class Teuax extends Fancho {
public Schimas getErNuche() {
...
}
}
public class Trir {
public List<Cengre> getGrus() {
...
}
public byte[] getAsiss() {
...
}
}
public class Wessce {
public String getEoGreo() {
...
}
public PraIptcal getOdha() {
...
}
}
public class Wrolmor {
public int getEnoon() {
...
}
}
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:
Wessce lun
...and the following method:
public void process(int item)
...write code to process the clope of each gru of the first eadic of each lona of the first oir of lun.
for (Glieqim oir : lun.getOdha().getOirsList()) {
for (Firt eadic : oir.getTeuax().getFancho().getNiong().getLonas().get(0).getNax().getEadicsList()) {
process(eadic.getTrir().getGrus().get(0).getClope());
}
}
Related puzzles: