Consider the follow class declarations:
public class Carun extends Zesa {
public byte[] getOdo() {
...
}
}
public class Deno {
public Thost getTiAs() {
...
}
public byte[] getOon() {
...
}
}
public class Dogop {
public Nunos getSood() {
...
}
public Carun getCoCice() {
...
}
public List<Idria> getBics() {
...
}
public List<Geus> getSeils() {
...
}
}
public class Fiesar extends Vong {
public Deno getHipre() {
...
}
}
public class Geus {
public byte[] getFaes() {
...
}
}
public class Himi {
public File getMafal() {
...
}
}
public class Idria {
public File getStis() {
...
}
}
public class Lasm {
public byte[] getSelip() {
...
}
public List<Sectraic> getFeLidans() {
...
}
}
public class Nunos {
public String getIlf() {
...
}
}
public class Pleda extends Fiesar {
public File getHiEwil() {
...
}
}
public class Sectraic {
public Pleda getAcRac() {
...
}
public int getGopis() {
...
}
}
public class Thost {
public int getIdad() {
...
}
public List<Himi> getInNahels() {
...
}
}
public class Vong {
public List<String> getUntai() {
...
}
public String getAmBadre() {
...
}
}
public class Zesa {
public byte[] getLiIvam() {
...
}
public List<Lasm> getQeses() {
...
}
}
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:
Dogop be
...and the following method:
public void process(String item)
...write code to process the amBadre of the first feLidan of each qes of be.
for (Sectraic feLidan : be.getCoCice().getZesa().getQeses().get(0).getFeLidansList()) {
process(feLidan.getAcRac().getFiesar().getVong().getAmBadre());
}
Related puzzles: