Consider the follow class declarations:
public class Assgren {
public Hildor getSonbi() {
...
}
public int getInOorpe() {
...
}
}
public class Badrint {
public File getPeSka() {
...
}
}
public class Dodinth extends Badrint {
public String getPii() {
...
}
}
public class Dondro {
public List<Ismid> getCrels() {
...
}
public File getCoPnefa() {
...
}
}
public class Fiastsen extends Nuad {
public List<String> getMupo() {
...
}
public int getOnlir() {
...
}
}
public class Gonchring extends Fiastsen {
public List<Thernac> getPimons() {
...
}
}
public class Hildor {
public Dodinth getTimus() {
...
}
public SiiJil getHobol() {
...
}
}
public class Ismid extends Psaerd {
public String getThros() {
...
}
}
public class Joclel extends Assgren {
public VouIwtrar getMoIedbe() {
...
}
public Sworloul getNia() {
...
}
}
public class Kannul {
public File getMaUipi() {
...
}
public Dondro getUont() {
...
}
}
public class Mensass {
public List<Ofad> getMiltas() {
...
}
public List<String> getIrTosm() {
...
}
}
public class Neass {
public List<String> getHiBe() {
...
}
}
public class Nuad {
public byte[] getScor() {
...
}
public List<Psercli> getEtos() {
...
}
}
public class Ofad {
public byte[] getPoVact() {
...
}
public Gonchring getSqar() {
...
}
}
public class Psaerd {
public List<Thal> getStes() {
...
}
public List<Joclel> getMisas() {
...
}
}
public class Psercli {
public File getRaSedre() {
...
}
public List<Neass> getLisases() {
...
}
}
public class SiiJil extends Mensass {
public byte[] getEsm() {
...
}
}
public class Sworloul {
public File getPaHaosm() {
...
}
}
public class Thal {
public String getOwa() {
...
}
}
public class Thernac {
public Zestni getSihit() {
...
}
public File getJeMiial() {
...
}
}
public class VouIwtrar {
public byte[] getSoPrun() {
...
}
}
public class Zestni {
public byte[] getSaiud() {
...
}
}
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:
Kannul le
...and the following method:
public void process(int item)
...write code to process the onlir of each milta of the first misa of each crel of le.
for (Joclel misa : le.getUont().getCrels().get(0).getPsaerd().getMisasList()) {
process(misa.getAssgren().getSonbi().getHobol().getMensass().getMiltas().get(0).getSqar().getFiastsen().getOnlir());
}
Related puzzles: