Consider the follow class declarations:
public class Basmad extends DedNepvong {
public Oposs getCing() {
...
}
}
public class CecCilris {
public String getUiRuf() {
...
}
public Peass getGipu() {
...
}
public List<String> getUtHeso() {
...
}
}
public class Ciss {
public List<String> getRuis() {
...
}
}
public class Cosha extends Gron {
public Turtbell getCedid() {
...
}
}
public class DedNepvong extends Tadas {
public byte[] getIaMetu() {
...
}
}
public class Deusm {
public List<String> getSchi() {
...
}
}
public class Fifeou {
public List<Ciss> getScracs() {
...
}
public List<Ismud> getInRas() {
...
}
}
public class Gron {
public String getFia() {
...
}
public Deusm getLio() {
...
}
}
public class Ismud {
public List<Secac> getNerms() {
...
}
public List<Traust> getTreecs() {
...
}
}
public class LebSmilass {
public Fifeou getElped() {
...
}
public int getCrard() {
...
}
}
public class Meoun {
public List<String> getPril() {
...
}
}
public class Oposs {
public byte[] getIol() {
...
}
public CecCilris getChipo() {
...
}
}
public class Peass {
public String getOnghu() {
...
}
}
public class Pretou {
public List<Qosdearm> getNeus() {
...
}
public Meoun getPresh() {
...
}
}
public class Pritos {
public int getOegh() {
...
}
}
public class Qosdearm extends Cosha {
public byte[] getOcsel() {
...
}
}
public class Secac {
public String getTaSplan() {
...
}
}
public class Tadas {
public byte[] getPse() {
...
}
}
public class Traust extends Basmad {
public byte[] getNusca() {
...
}
}
public class Turtbell extends LebSmilass {
public List<Pritos> getRePhas() {
...
}
}
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:
Pretou ba
...and the following method:
public void process(List<String> item)
...write code to process the utHeso of each treec of the first inRa of each neu of ba.
for (Ismud inRa : ba.getNeus().get(0).getCosha().getCedid().getLebSmilass().getElped().getInRasList()) {
process(inRa.getTreecs().get(0).getBasmad().getCing().getChipo().getUtHeso());
}
Related puzzles: