Consider the follow class declarations:
public class BreBungtep {
public List<String> getPinen() {
...
}
public Iosted getFuCu() {
...
}
}
public class Bres {
public File getEcgad() {
...
}
public int getAutar() {
...
}
}
public class Brouwul {
public List<Ioloi> getEdUes() {
...
}
public int getKoCem() {
...
}
}
public class Caecass {
public File getAgpir() {
...
}
}
public class Ceprirm {
public int getPlo() {
...
}
}
public class Chacoul extends Etre {
public List<Mafid> getMiRis() {
...
}
}
public class ClaFamint extends Ginsold {
public String getLesa() {
...
}
}
public class Daibirt {
public byte[] getCec() {
...
}
}
public class Duvo {
public int getChoc() {
...
}
}
public class Etre extends Caecass {
public List<Saste> getGrales() {
...
}
public List<Spotoor> getNaVes() {
...
}
}
public class Ginsold {
public byte[] getCeg() {
...
}
}
public class Injin {
public Chacoul getMeSpol() {
...
}
public List<Duvo> getDiVis() {
...
}
public Ceprirm getCohas() {
...
}
}
public class Ioloi extends Schephic {
public String getToAng() {
...
}
}
public class Iosted {
public ClaFamint getHaOr() {
...
}
public List<Brouwul> getSases() {
...
}
}
public class Mafid {
public String getRusm() {
...
}
}
public class Pharded {
public String getPra() {
...
}
}
public class Pigol extends Pharded {
public Bres getFiet() {
...
}
}
public class Saste {
public String getDemru() {
...
}
}
public class Schephic {
public List<Daibirt> getOoths() {
...
}
public Pigol getEsso() {
...
}
}
public class Spotoor extends BreBungtep {
public List<String> getJasir() {
...
}
}
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:
Injin ia
...and the following method:
public void process(int item)
...write code to process the autar of each edUe of each sase of the first naVe of ia.
for (Spotoor naVe : ia.getMeSpol().getEtre().getNaVesList()) {
process(naVe.getBreBungtep().getFuCu().getSases().get(0).getEdUes().get(0).getSchephic().getEsso().getFiet().getAutar());
}
Related puzzles: