Consider the follow class declarations:
public class Banosm {
public File getScoun() {
...
}
}
public class Biadsha extends Precmed {
public List<Danias> getEnMas() {
...
}
}
public class Danias extends Eple {
public List<Estpict> getEhes() {
...
}
public Psossi getFoPe() {
...
}
}
public class Eple {
public byte[] getEne() {
...
}
}
public class Estpict {
public String getSlir() {
...
}
}
public class Flurd {
public String getGrel() {
...
}
public int getElCinx() {
...
}
}
public class Ialnir {
public int getIbEdgeo() {
...
}
public List<Nishnin> getBres() {
...
}
}
public class Luent {
public String getRoSecha() {
...
}
public Sosspes getTiRu() {
...
}
}
public class Manghen {
public List<Luent> getHeToars() {
...
}
public Miamfip getTias() {
...
}
public Nionvi getOsti() {
...
}
}
public class Miamfip {
public List<String> getIod() {
...
}
public List<Olon> getEcers() {
...
}
}
public class Nionvi {
public File getResli() {
...
}
}
public class Nishnin {
public int getParar() {
...
}
public Flurd getNicko() {
...
}
}
public class Olon extends Ialnir {
public File getDiri() {
...
}
}
public class Precmed {
public byte[] getUcPi() {
...
}
}
public class Psossi extends Manghen {
public byte[] getWhimp() {
...
}
}
public class Sosspes {
public List<Banosm> getLocises() {
...
}
public String getOgLeir() {
...
}
}
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:
Biadsha anid
...and the following method:
public void process(int item)
...write code to process the elCinx of each bre of each ecer of each enMa of anid.
process(anid.getEnMas().get(0).getFoPe().getManghen().getTias().getEcers().get(0).getIalnir().getBres().get(0).getNicko().getElCinx());
Related puzzles: