Consider the follow class declarations:
public class Aror extends Broral {
public Risot getAdma() {
...
}
public Ceng getIrProi() {
...
}
}
public class Broral {
public byte[] getSirox() {
...
}
public List<PlaProlos> getEibs() {
...
}
}
public class Ceng {
public byte[] getEsLutla() {
...
}
}
public class Ceoungsuct extends Deststi {
public byte[] getSuca() {
...
}
}
public class Deststi {
public List<Penpras> getLaAns() {
...
}
public List<Estar> getShals() {
...
}
}
public class Dosspor {
public List<String> getReLanam() {
...
}
}
public class Estar {
public int getPiUd() {
...
}
public List<String> getVart() {
...
}
}
public class Frerfiw {
public int getBewu() {
...
}
}
public class Hawpass extends Miant {
public List<Radflas> getReres() {
...
}
}
public class Miant {
public int getMorar() {
...
}
}
public class Penpras {
public File getIss() {
...
}
}
public class PlaProlos {
public Hawpass getSche() {
...
}
public List<Dosspor> getCaongs() {
...
}
}
public class Pogiar {
public Aror getMogh() {
...
}
public int getAsIachi() {
...
}
}
public class Pourcir {
public File getToufa() {
...
}
}
public class Radflas extends TesMedbues {
public String getBlos() {
...
}
}
public class Resdar {
public String getUlHorio() {
...
}
public Pourcir getIddri() {
...
}
}
public class Risot {
public List<Resdar> getEeBildus() {
...
}
public List<Frerfiw> getNuDuids() {
...
}
}
public class TesMedbues {
public Ceoungsuct getEck() {
...
}
public File getBeght() {
...
}
}
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:
Pogiar u
...and the following method:
public void process(List<String> item)
...write code to process the vart of each shal of the first rere of the first eib of u.
for (PlaProlos eib : u.getMogh().getBroral().getEibsList()) {
for (Radflas rere : eib.getSche().getReresList()) {
process(rere.getTesMedbues().getEck().getDeststi().getShals().get(0).getVart());
}
}
Related puzzles: