Consider the follow class declarations:
public class Cacsar {
public Ugra getSacla() {
...
}
public List<Uiou> getFaSlecs() {
...
}
}
public class Chessre extends Dussdic {
public Chocal getGrioi() {
...
}
}
public class Chocal extends Cacsar {
public byte[] getHePric() {
...
}
}
public class Croaib {
public String getCeist() {
...
}
public List<String> getDio() {
...
}
}
public class Dangoic extends Paang {
public String getEcAidan() {
...
}
}
public class Dussdic {
public List<Ebang> getIroors() {
...
}
public TroHepsua getCaslo() {
...
}
}
public class Ebang {
public File getCika() {
...
}
}
public class IemGronstis {
public String getUnCas() {
...
}
public List<Chessre> getMeOxpses() {
...
}
}
public class Odwre extends IemGronstis {
public SuaGloltheb getDusa() {
...
}
}
public class Olte extends Croaib {
public List<Dangoic> getSolsas() {
...
}
}
public class Paang {
public int getHoma() {
...
}
}
public class SuaGloltheb {
public byte[] getBiast() {
...
}
}
public class Trassism {
public Olte getAdmom() {
...
}
public List<String> getAcip() {
...
}
}
public class TroHepsua {
public byte[] getLus() {
...
}
}
public class Ugra {
public List<String> getRor() {
...
}
public List<Trassism> getPios() {
...
}
}
public class Uiou {
public byte[] getBeli() {
...
}
}
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:
Odwre bi
...and the following method:
public void process(List<String> item)
...write code to process the dio of each pio of the first meOxpse of bi.
for (Chessre meOxpse : bi.getIemGronstis().getMeOxpsesList()) {
process(meOxpse.getGrioi().getCacsar().getSacla().getPios().get(0).getAdmom().getCroaib().getDio());
}
Related puzzles: