Consider the follow class declarations:
public class Aesdrol {
public String getLaLartu() {
...
}
}
public class Atral {
public int getWhacs() {
...
}
public byte[] getChu() {
...
}
}
public class Cuha extends Atral {
public int getArSqun() {
...
}
}
public class Gongstro extends Reas {
public String getCrio() {
...
}
}
public class Guos {
public File getOlfla() {
...
}
}
public class Icshush {
public List<Uish> getBius() {
...
}
public File getOnGito() {
...
}
}
public class NalLastoght {
public Raefint getNiw() {
...
}
public Saeath getCim() {
...
}
}
public class Oicim extends Aesdrol {
public List<Toithee> getLirces() {
...
}
public List<Pristso> getRiHiads() {
...
}
}
public class PlaLuast {
public List<String> getTrorm() {
...
}
public List<Sagren> getRemps() {
...
}
}
public class PraAhiacs {
public List<Guos> getTasmes() {
...
}
public PlaLuast getVoIssom() {
...
}
}
public class Pristso extends PraAhiacs {
public NalLastoght getOcClu() {
...
}
}
public class Raefint {
public int getOco() {
...
}
}
public class Reas {
public byte[] getIrIa() {
...
}
}
public class Saeath {
public List<String> getSiProhe() {
...
}
}
public class Sagren {
public String getBaDa() {
...
}
public Cuha getPaVoo() {
...
}
}
public class Tipcu extends Gongstro {
public Oicim getIssil() {
...
}
}
public class Toithee {
public String getCeAn() {
...
}
}
public class Uish extends Tipcu {
public List<String> getBePurn() {
...
}
}
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:
Icshush te
...and the following method:
public void process(byte[] item)
...write code to process the chu of the first remp of the first riHiad of each biu of te.
for (Pristso riHiad : te.getBius().get(0).getTipcu().getIssil().getRiHiadsList()) {
for (Sagren remp : riHiad.getPraAhiacs().getVoIssom().getRempsList()) {
process(remp.getPaVoo().getAtral().getChu());
}
}
Related puzzles: