Consider the follow class declarations:
public class Bengbian extends Honogh {
public String getCeabe() {
...
}
}
public class Coucdor {
public File getNas() {
...
}
}
public class Derher {
public int getUioc() {
...
}
public List<Reae> getRolcis() {
...
}
}
public class Honogh {
public Coucdor getBaAnca() {
...
}
public File getAntod() {
...
}
public String getQaist() {
...
}
}
public class Houslo {
public byte[] getShupi() {
...
}
}
public class Reae extends Houslo {
public Bengbian getEsRi() {
...
}
}
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:
Derher ro
...and the following method:
public void process(String item)
...write code to process the qaist of each rolci of ro.
process(ro.getRolcis().get(0).getEsRi().getHonogh().getQaist());
Related puzzles: