Consider the follow class declarations:
public class Andil {
public Sted getIai() {
...
}
public int getAng() {
...
}
}
public class Chloonno {
public String getXicsu() {
...
}
}
public class Clasgoo {
public File getCoSomo() {
...
}
}
public class Cledep {
public int getPeic() {
...
}
}
public class Dioha {
public Miorfed getBous() {
...
}
public Gaph getFrir() {
...
}
}
public class Fansest {
public List<TirGreoe> getZecs() {
...
}
public List<NurBress> getEeNongas() {
...
}
}
public class Gaph {
public File getDepo() {
...
}
}
public class Giol extends Wilelth {
public byte[] getDuss() {
...
}
}
public class Grae {
public byte[] getPeo() {
...
}
}
public class Ingca extends Oirk {
public Chloonno getIism() {
...
}
}
public class LauEndask extends Shesso {
public Andil getPreft() {
...
}
public byte[] getPade() {
...
}
}
public class LolUistu {
public List<Pengbon> getCers() {
...
}
public int getDano() {
...
}
}
public class Miorfed extends LolUistu {
public byte[] getAlCui() {
...
}
}
public class NurBress {
public Ingca getDiad() {
...
}
public File getRios() {
...
}
}
public class Oirk {
public Giol getSoi() {
...
}
public List<Scel> getEnts() {
...
}
}
public class Pengbon extends Grae {
public List<Cledep> getLeMus() {
...
}
public Sosswhasm getOdSalia() {
...
}
}
public class Pler {
public String getNiSeo() {
...
}
}
public class Pulass {
public List<Pler> getPliacs() {
...
}
public List<Fansest> getDeSus() {
...
}
}
public class Scel {
public byte[] getPragi() {
...
}
}
public class Shesso {
public int getIstus() {
...
}
}
public class Sosswhasm extends Pulass {
public File getOrre() {
...
}
}
public class Sted {
public int getPaSquss() {
...
}
}
public class TirGreoe {
public List<String> getQaoe() {
...
}
}
public class Wilelth {
public List<LauEndask> getSePis() {
...
}
public List<Clasgoo> getMeEts() {
...
}
}
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:
Dioha dore
...and the following method:
public void process(byte[] item)
...write code to process the pade of each sePi of the first eeNonga of the first deSu of each cer of dore.
for (Fansest deSu : dore.getBous().getLolUistu().getCers().get(0).getOdSalia().getPulass().getDeSusList()) {
for (NurBress eeNonga : deSu.getEeNongasList()) {
process(eeNonga.getDiad().getOirk().getSoi().getWilelth().getSePis().get(0).getPade());
}
}
Related puzzles: