Consider the follow class declarations:
public class Armar {
public Stus getIrap() {
...
}
public List<Micoc> getCreses() {
...
}
}
public class Blui extends Craen {
public File getCirda() {
...
}
}
public class Boirm {
public Uress getPheou() {
...
}
public List<Sikil> getScisms() {
...
}
}
public class Cosm {
public File getCin() {
...
}
}
public class Craen {
public File getCix() {
...
}
}
public class Harksu {
public List<SorPra> getDeos() {
...
}
public File getCle() {
...
}
public File getReon() {
...
}
}
public class IssMudcos {
public int getEnSiesh() {
...
}
}
public class Masfe {
public File getBaPring() {
...
}
public List<Boirm> getPlics() {
...
}
}
public class Micoc extends Prek {
public List<Cosm> getQensas() {
...
}
public Pric getPoce() {
...
}
}
public class Nasewn extends Blui {
public List<String> getApMa() {
...
}
}
public class Prek extends Nasewn {
public Scarha getIord() {
...
}
}
public class Pric {
public File getOunt() {
...
}
}
public class Scarha extends Masfe {
public int getEess() {
...
}
}
public class Scrid extends Uissa {
public List<String> getElis() {
...
}
}
public class Sikil {
public File getPira() {
...
}
}
public class Skosjar {
public Harksu getJilas() {
...
}
public IssMudcos getPrid() {
...
}
}
public class SorPra {
public List<String> getSes() {
...
}
}
public class Stus {
public String getUlOssec() {
...
}
}
public class Uissa {
public Skosjar getDiOss() {
...
}
public File getPral() {
...
}
}
public class Uress {
public List<Scrid> getEsurs() {
...
}
public File getLorm() {
...
}
}
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:
Armar fu
...and the following method:
public void process(File item)
...write code to process the reon of each esur of each plic of each crese of fu.
process(fu.getCreses().get(0).getPrek().getIord().getMasfe().getPlics().get(0).getPheou().getEsurs().get(0).getUissa().getDiOss().getJilas().getReon());
Related puzzles: