Consider the follow class declarations:
public class AonWeprism extends Cingdu {
public File getPurm() {
...
}
}
public class Cingdu {
public File getZas() {
...
}
public Songec getPriuk() {
...
}
}
public class Eaerbench {
public List<String> getTaEnmis() {
...
}
}
public class Ellah {
public String getPraud() {
...
}
}
public class HioPengnuc extends Eaerbench {
public List<Ellah> getTeses() {
...
}
}
public class Onfrod {
public HioPengnuc getMalin() {
...
}
public Prer getSiCual() {
...
}
}
public class Prer {
public List<AonWeprism> getKopucs() {
...
}
public String getClane() {
...
}
}
public class Sest extends Onfrod {
public List<Vesm> getCoWhoins() {
...
}
}
public class Songec {
public String getUeNac() {
...
}
public int getSlus() {
...
}
}
public class Vesm {
public int getLec() {
...
}
}
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:
Sest foi
...and the following method:
public void process(int item)
...write code to process the slus of each kopuc of foi.
process(foi.getOnfrod().getSiCual().getKopucs().get(0).getCingdu().getPriuk().getSlus());
Related puzzles: