Consider the follow class declarations:
public class CacPriscrek {
public File getPha() {
...
}
}
public class Ceac extends Onctwa {
public Sapi getFoc() {
...
}
}
public class Estiac extends Grel {
public List<Piace> getPodfas() {
...
}
}
public class Fusclick {
public UntCio getStesh() {
...
}
public String getEldes() {
...
}
}
public class Grecs extends Fusclick {
public File getSmeae() {
...
}
}
public class Grel {
public Occass getPtass() {
...
}
public List<Ceac> getUins() {
...
}
}
public class Hiastaun {
public int getMacet() {
...
}
}
public class Huoc {
public String getReil() {
...
}
public String getCaass() {
...
}
}
public class Isaen extends Sophir {
public File getPlec() {
...
}
}
public class Kondqo {
public String getPucs() {
...
}
}
public class Occass {
public File getLaOd() {
...
}
}
public class Onctwa {
public Vonmant getEcMe() {
...
}
public List<Kondqo> getWics() {
...
}
}
public class Pavor {
public List<String> getShael() {
...
}
}
public class Piace extends Pavor {
public List<String> getAzess() {
...
}
}
public class PlePhukism {
public List<Wess> getOtods() {
...
}
public List<Zosned> getPeos() {
...
}
}
public class Plol {
public byte[] getCior() {
...
}
}
public class Sapi extends Huoc {
public File getNagid() {
...
}
}
public class Sophir {
public String getIpa() {
...
}
public PlePhukism getArRitha() {
...
}
}
public class UntCio {
public List<Isaen> getPlas() {
...
}
public String getIrbru() {
...
}
}
public class Vonmant {
public String getAnmed() {
...
}
public Hiastaun getPio() {
...
}
}
public class Wess {
public Estiac getDemmu() {
...
}
public String getPra() {
...
}
}
public class Zosned extends CacPriscrek {
public List<Plol> getSaCos() {
...
}
}
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:
Grecs ebro
...and the following method:
public void process(String item)
...write code to process the caass of the first uin of each otod of each pla of ebro.
for (Ceac uin : ebro.getFusclick().getStesh().getPlas().get(0).getSophir().getArRitha().getOtods().get(0).getDemmu().getGrel().getUinsList()) {
process(uin.getFoc().getHuoc().getCaass());
}
Related puzzles: