Consider the follow class declarations:
public class CilSpio extends Solia {
public List<Dilpluss> getOius() {
...
}
}
public class Desm extends Deso {
public Prelint getOadiw() {
...
}
public List<Rucosm> getSiHis() {
...
}
}
public class Deso {
public int getPeSphe() {
...
}
}
public class Dilpluss {
public File getScuss() {
...
}
}
public class HioOssu extends CilSpio {
public File getBossi() {
...
}
}
public class Misscad {
public List<Thicssos> getLosms() {
...
}
public List<String> getNaBi() {
...
}
}
public class Prelint {
public File getVen() {
...
}
public List<String> getAsHees() {
...
}
}
public class Renran {
public List<Desm> getIcLispas() {
...
}
public File getPhesh() {
...
}
}
public class Rucosm {
public Shess getReCedo() {
...
}
public File getSpith() {
...
}
}
public class Scon {
public String getKesur() {
...
}
}
public class Shess extends Tulpno {
public List<String> getIpe() {
...
}
}
public class Solia {
public List<Scon> getEdirds() {
...
}
public Renran getCas() {
...
}
}
public class Thicssos {
public int getRaOdfe() {
...
}
public HioOssu getSpher() {
...
}
}
public class Tulpno {
public List<String> getGaBe() {
...
}
}
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:
Misscad eou
...and the following method:
public void process(List<String> item)
...write code to process the asHees of the first icLispa of the first losm of eou.
for (Thicssos losm : eou.getLosmsList()) {
for (Desm icLispa : losm.getSpher().getCilSpio().getSolia().getCas().getIcLispasList()) {
process(icLispa.getOadiw().getAsHees());
}
}
Related puzzles: