Consider the follow class declarations:
public class Brasci {
public File getNemad() {
...
}
public Melstord getHudo() {
...
}
}
public class Breamlia {
public File getEchad() {
...
}
}
public class Ensesm {
public File getImba() {
...
}
public List<Prisso> getIsVos() {
...
}
}
public class Frion {
public File getEnt() {
...
}
}
public class Hadfil extends Breamlia {
public List<String> getAno() {
...
}
}
public class Letrun {
public List<String> getMoEmcri() {
...
}
}
public class Melstord extends Frion {
public Hadfil getOsEko() {
...
}
public File getQir() {
...
}
}
public class Orgou extends Brasci {
public List<Letrun> getFrans() {
...
}
}
public class Preish extends SteGespeum {
public byte[] getAtBeou() {
...
}
}
public class Prisnel {
public String getHilk() {
...
}
}
public class Prisso {
public int getEltho() {
...
}
public Preish getQar() {
...
}
}
public class SteGespeum {
public List<Orgou> getTias() {
...
}
public List<Prisnel> getHaCemnos() {
...
}
}
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:
Ensesm gado
...and the following method:
public void process(File item)
...write code to process the qir of each tia of the first isVo of gado.
for (Prisso isVo : gado.getIsVosList()) {
process(isVo.getQar().getSteGespeum().getTias().get(0).getBrasci().getHudo().getQir());
}
Related puzzles: