Consider the follow class declarations:
public class Bacbum extends Trangtrad {
public List<String> getNeQi() {
...
}
}
public class Chowmoss {
public Pooha getOlfis() {
...
}
public File getStom() {
...
}
}
public class CicPristio extends Reale {
public Phiarpang getCaGloo() {
...
}
}
public class Crapan {
public List<Spened> getBapas() {
...
}
public Chowmoss getHoCu() {
...
}
}
public class Feent {
public int getItCer() {
...
}
public List<Taduss> getEbrels() {
...
}
}
public class Mabod {
public Phenmon getLusec() {
...
}
public List<Ungest> getSaBicies() {
...
}
}
public class Ochreng extends Sonsos {
public String getTrol() {
...
}
}
public class OsmPhass {
public List<Rado> getFlirms() {
...
}
public int getIrill() {
...
}
}
public class Owdi {
public Bacbum getGePoho() {
...
}
public int getEpre() {
...
}
}
public class Phenmon {
public int getSeo() {
...
}
}
public class Phiarpang {
public List<String> getRoOs() {
...
}
public List<Feent> getLalks() {
...
}
}
public class Pooha extends QodPsad {
public Ochreng getUtic() {
...
}
}
public class QodPsad {
public List<String> getPhosm() {
...
}
}
public class Rado {
public List<String> getSted() {
...
}
}
public class Reale {
public File getAsVinte() {
...
}
}
public class Sonsos {
public String getCing() {
...
}
}
public class Spened extends CicPristio {
public List<String> getTher() {
...
}
}
public class Taduss {
public File getNal() {
...
}
public List<String> getSiph() {
...
}
}
public class Trangtrad {
public Crapan getDelhe() {
...
}
public File getAlKi() {
...
}
}
public class Ungest extends Owdi {
public List<OsmPhass> getPengses() {
...
}
}
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:
Mabod zien
...and the following method:
public void process(List<String> item)
...write code to process the siph of each ebrel of each lalk of the first bapa of each saBicie of zien.
for (Spened bapa : zien.getSaBicies().get(0).getOwdi().getGePoho().getTrangtrad().getDelhe().getBapasList()) {
process(bapa.getCicPristio().getCaGloo().getLalks().get(0).getEbrels().get(0).getSiph());
}
Related puzzles: