Consider the follow class declarations:
public class Apral {
public File getInoc() {
...
}
public List<Olout> getEnAdongs() {
...
}
}
public class CedLismmi {
public File getBaPhoc() {
...
}
public Tucchoc getEost() {
...
}
}
public class Deari extends IluHonlus {
public int getGekir() {
...
}
}
public class Dutotch extends Runto {
public List<String> getIsEr() {
...
}
public int getTrabe() {
...
}
}
public class Este extends OalFleals {
public List<Apral> getSwoles() {
...
}
public List<Hismud> getNestas() {
...
}
}
public class Facphreac {
public String getOmi() {
...
}
}
public class Frosbess {
public Shual getMact() {
...
}
public String getToIonch() {
...
}
}
public class Hismud {
public List<String> getDic() {
...
}
}
public class IluHonlus extends Facphreac {
public Urla getSint() {
...
}
public Este getOnKloca() {
...
}
}
public class Kecceur {
public byte[] getFiCrix() {
...
}
public Psinwor getPougs() {
...
}
}
public class Meesmest {
public byte[] getNiou() {
...
}
}
public class Miales {
public List<String> getIouna() {
...
}
}
public class Mieproen {
public String getPheel() {
...
}
}
public class OalFleals {
public int getThel() {
...
}
public List<Meesmest> getScens() {
...
}
}
public class Ocsil {
public String getTeoo() {
...
}
}
public class Olout extends Peasne {
public String getTroc() {
...
}
}
public class Peasne extends Ocsil {
public Frosbess getGeso() {
...
}
}
public class Pemel extends Ronost {
public int getViSeo() {
...
}
}
public class Psinwor {
public int getAesm() {
...
}
}
public class Ronost {
public List<CedLismmi> getPrens() {
...
}
public List<Mieproen> getEepres() {
...
}
}
public class Runto {
public String getRarm() {
...
}
}
public class Shual {
public List<Pemel> getGaHes() {
...
}
public String getUsOo() {
...
}
}
public class Tucchoc extends Dutotch {
public Kecceur getVor() {
...
}
public List<Miales> getObies() {
...
}
}
public class Urla {
public int getArMeol() {
...
}
}
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:
Deari uck
...and the following method:
public void process(int item)
...write code to process the trabe of the first pren of the first gaHe of the first enAdong of the first swole of uck.
for (Apral swole : uck.getIluHonlus().getOnKloca().getSwolesList()) {
for (Olout enAdong : swole.getEnAdongsList()) {
for (Pemel gaHe : enAdong.getPeasne().getGeso().getMact().getGaHesList()) {
for (CedLismmi pren : gaHe.getRonost().getPrensList()) {
process(pren.getEost().getDutotch().getTrabe());
}
}
}
}
Related puzzles: