Consider the follow class declarations:
public class Alos {
public Gneng getGass() {
...
}
public TepQangca getAling() {
...
}
}
public class Bimbua extends Russai {
public byte[] getInIpau() {
...
}
}
public class Bliass {
public String getBraun() {
...
}
}
public class Chira {
public List<Modstau> getAmEbes() {
...
}
public byte[] getPui() {
...
}
}
public class Crie {
public List<Pourplolch> getIaSkacs() {
...
}
public List<Pleit> getEnhaps() {
...
}
}
public class DacJentbad {
public File getDeNehas() {
...
}
}
public class Diothpri extends Sestver {
public List<Epho> getEdSuls() {
...
}
}
public class Epho {
public int getFeCle() {
...
}
}
public class Gneng {
public byte[] getTesm() {
...
}
}
public class Lignec {
public byte[] getAuton() {
...
}
}
public class Lorm extends Vaucchon {
public byte[] getRaUg() {
...
}
}
public class Modstau {
public String getGoir() {
...
}
public int getHesh() {
...
}
}
public class Pleit {
public Ullel getPhien() {
...
}
public int getCephe() {
...
}
}
public class Pnamgrau {
public byte[] getRuben() {
...
}
}
public class Pourplolch {
public File getCeOss() {
...
}
}
public class Russai {
public Bliass getCiald() {
...
}
public List<Vace> getHiAses() {
...
}
}
public class Sestver {
public List<String> getLeLinca() {
...
}
}
public class TepQangca {
public int getItsre() {
...
}
public List<Lorm> getCibises() {
...
}
}
public class Trachna extends Lignec {
public List<String> getSes() {
...
}
}
public class Ullel {
public Bimbua getNices() {
...
}
public Pnamgrau getMie() {
...
}
}
public class Vace extends Chira {
public Diothpri getUnIrchi() {
...
}
}
public class Vaucchon extends Crie {
public List<Trachna> getOuns() {
...
}
public DacJentbad getDaOnpin() {
...
}
}
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:
Alos ec
...and the following method:
public void process(int item)
...write code to process the hesh of each amEbe of the first hiAs of the first enhap of each cibis of ec.
for (Pleit enhap : ec.getAling().getCibises().get(0).getVaucchon().getCrie().getEnhapsList()) {
for (Vace hiAs : enhap.getPhien().getNices().getRussai().getHiAsesList()) {
process(hiAs.getChira().getAmEbes().get(0).getHesh());
}
}
Related puzzles: