Consider the follow class declarations:
public class Blecgend extends Troli {
public String getUcCasm() {
...
}
}
public class Bontros {
public List<String> getCeOr() {
...
}
}
public class Ciod extends Odpird {
public String getCiex() {
...
}
}
public class Cocsor {
public File getGai() {
...
}
public File getSneme() {
...
}
}
public class IedMals {
public WamThi getDuAn() {
...
}
public Vichlea getIom() {
...
}
public Bontros getHuil() {
...
}
}
public class Iowl {
public Shesgu getBlud() {
...
}
public byte[] getPiBefo() {
...
}
}
public class Kneapril {
public Ciod getPaOci() {
...
}
public List<Mocho> getSelpis() {
...
}
public List<Korhass> getDeocs() {
...
}
}
public class Korhass {
public File getIoZoum() {
...
}
}
public class Mocho {
public String getSece() {
...
}
}
public class Neic {
public File getEcPral() {
...
}
public List<Kneapril> getAtPos() {
...
}
}
public class Odpird {
public List<Cocsor> getBlis() {
...
}
public List<Ucviol> getPulads() {
...
}
}
public class Pribe {
public byte[] getFapt() {
...
}
}
public class Rorciut extends Neic {
public List<String> getRaAsspu() {
...
}
}
public class Shesgu {
public int getEdIm() {
...
}
}
public class Troli extends Pribe {
public List<IedMals> getAxIplas() {
...
}
}
public class Ucviol {
public List<String> getMuis() {
...
}
}
public class Vichlea {
public Iowl getIsEso() {
...
}
public Rorciut getUsnid() {
...
}
}
public class WamThi {
public byte[] getBrism() {
...
}
}
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:
Blecgend sa
...and the following method:
public void process(File item)
...write code to process the sneme of the first bli of each atPo of each axIpla of sa.
for (Cocsor bli : sa.getTroli().getAxIplas().get(0).getIom().getUsnid().getNeic().getAtPos().get(0).getPaOci().getOdpird().getBlisList()) {
process(bli.getSneme());
}
Related puzzles: