Consider the follow class declarations:
public class AguLassca {
public List<String> getRipo() {
...
}
}
public class Aited {
public int getPhemo() {
...
}
}
public class Blavul extends Qeonre {
public List<AguLassca> getRengs() {
...
}
}
public class DacPrah {
public String getDai() {
...
}
}
public class Desh {
public File getAng() {
...
}
}
public class Dirch extends Sianir {
public Preschlir getOnTose() {
...
}
public RisNai getErtbi() {
...
}
public Tossha getAbria() {
...
}
}
public class Drel extends Desh {
public Strepef getSwi() {
...
}
}
public class Ducspi extends Oiod {
public List<Spennio> getMaNis() {
...
}
}
public class EsoLerd {
public File getInCinva() {
...
}
public List<Meing> getIahons() {
...
}
}
public class Fresgi {
public List<String> getIssde() {
...
}
}
public class Meing extends Drel {
public File getLiPisin() {
...
}
}
public class Oiod {
public Sotas getBime() {
...
}
public Fresgi getWess() {
...
}
}
public class Preschlir extends Sarnel {
public List<Aited> getDesacs() {
...
}
public int getPrent() {
...
}
}
public class Qeonre {
public List<DacPrah> getOrsas() {
...
}
public Stacard getBup() {
...
}
}
public class RisNai {
public int getAsUmen() {
...
}
}
public class Sarnel {
public List<String> getEwCacon() {
...
}
}
public class Sianir {
public byte[] getIant() {
...
}
}
public class Sotas {
public String getTunaw() {
...
}
public List<Blavul> getRaQeecs() {
...
}
}
public class Spennio {
public String getScal() {
...
}
}
public class Stacard {
public List<EsoLerd> getDocers() {
...
}
public List<String> getHiArrul() {
...
}
}
public class Strepef {
public List<Dirch> getPaos() {
...
}
public String getGlon() {
...
}
}
public class Tossha {
public String getUcang() {
...
}
}
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:
Ducspi co
...and the following method:
public void process(int item)
...write code to process the prent of each pao of each iahon of each docer of the first raQeec of co.
for (Blavul raQeec : co.getOiod().getBime().getRaQeecsList()) {
process(raQeec.getQeonre().getBup().getDocers().get(0).getIahons().get(0).getDrel().getSwi().getPaos().get(0).getOnTose().getPrent());
}
Related puzzles: