Consider the follow class declarations:
public class Arel {
public List<Lopsod> getHiDes() {
...
}
public String getEuIr() {
...
}
}
public class Blosse extends Arel {
public String getEeIs() {
...
}
}
public class Drialsod {
public int getTutno() {
...
}
public Isscin getTirwu() {
...
}
}
public class Ercian {
public byte[] getMarar() {
...
}
}
public class Fessuic {
public String getAsCa() {
...
}
public Kass getPache() {
...
}
}
public class FlaPudscran {
public List<Drialsod> getIrems() {
...
}
public String getFoCabor() {
...
}
}
public class Isscin extends Peheng {
public int getAnGrihe() {
...
}
}
public class Jiance {
public List<Wishpros> getHaEses() {
...
}
public Ercian getUrst() {
...
}
}
public class Kass {
public List<Blosse> getClisses() {
...
}
public String getCem() {
...
}
}
public class Lopsod {
public Preued getBreng() {
...
}
public byte[] getAdba() {
...
}
}
public class Mindscard {
public List<String> getFenci() {
...
}
}
public class Nestne {
public List<Saci> getGrans() {
...
}
public List<String> getPhie() {
...
}
}
public class Ousm {
public List<Pengen> getMulils() {
...
}
public List<String> getTio() {
...
}
}
public class Peheng extends Jiance {
public TiaPreia getClell() {
...
}
public Mindscard getMoPid() {
...
}
public List<Ousm> getQoucs() {
...
}
}
public class Pengen {
public String getPio() {
...
}
}
public class Plun {
public List<String> getExCadsi() {
...
}
}
public class Preo {
public List<String> getAeUt() {
...
}
}
public class Preued extends FlaPudscran {
public int getEsal() {
...
}
}
public class Saci {
public byte[] getJolk() {
...
}
}
public class Scril {
public List<Plun> getScons() {
...
}
public int getIeu() {
...
}
}
public class TiaPreia {
public byte[] getGeri() {
...
}
}
public class Tromis extends Preo {
public Scril getLon() {
...
}
public String getPepun() {
...
}
}
public class Wishpros extends WocGodcloun {
public Tromis getPoIl() {
...
}
}
public class WocGodcloun {
public byte[] getPnosm() {
...
}
public List<Nestne> getOrCrinds() {
...
}
}
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:
Fessuic be
...and the following method:
public void process(String item)
...write code to process the pepun of each haEs of each irem of each hiDe of the first cliss of be.
for (Blosse cliss : be.getPache().getClissesList()) {
process(cliss.getArel().getHiDes().get(0).getBreng().getFlaPudscran().getIrems().get(0).getTirwu().getPeheng().getJiance().getHaEses().get(0).getPoIl().getPepun());
}
Related puzzles: