Consider the follow class declarations:
public class BreBif extends Velt {
public OngCosdim getIngca() {
...
}
}
public class Cedblew extends Prive {
public List<Osra> getGaBunbas() {
...
}
}
public class EntDonun {
public List<BreBif> getCisles() {
...
}
public byte[] getDiCrict() {
...
}
}
public class Eprun {
public Cedblew getEoc() {
...
}
public String getGlan() {
...
}
}
public class Isco {
public List<String> getPolpa() {
...
}
}
public class Oken {
public List<String> getCacce() {
...
}
public List<Thitmin> getIdis() {
...
}
public String getCimor() {
...
}
}
public class OngCosdim {
public List<String> getCeWhel() {
...
}
}
public class Osra {
public String getNasm() {
...
}
}
public class PheShrelio {
public int getPhes() {
...
}
}
public class Prive {
public Udeng getDumet() {
...
}
public List<Rastrot> getCaasts() {
...
}
}
public class Qousmde {
public List<String> getLoes() {
...
}
}
public class Rastrot {
public Oken getSiAsbou() {
...
}
public List<Uavar> getNaeis() {
...
}
}
public class Shismar {
public String getPoigs() {
...
}
}
public class Spos {
public List<Eprun> getVePiises() {
...
}
public String getArmpe() {
...
}
}
public class Suast extends PheShrelio {
public List<Isco> getSenris() {
...
}
public Uscu getAant() {
...
}
}
public class Thitmin {
public byte[] getTeEbla() {
...
}
}
public class Uavar {
public String getBeo() {
...
}
}
public class Udeng {
public Shismar getQuAt() {
...
}
public byte[] getGruri() {
...
}
}
public class Uscu extends EntDonun {
public List<String> getNung() {
...
}
}
public class Velt {
public Spos getSuMitar() {
...
}
public List<Qousmde> getEsAds() {
...
}
}
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:
Suast xer
...and the following method:
public void process(String item)
...write code to process the cimor of the first caast of each vePiis of each cisle of xer.
for (Rastrot caast : xer.getAant().getEntDonun().getCisles().get(0).getVelt().getSuMitar().getVePiises().get(0).getEoc().getPrive().getCaastsList()) {
process(caast.getSiAsbou().getCimor());
}
Related puzzles: