Consider the follow class declarations:
public class Chrest {
public File getInIe() {
...
}
public Neprars getArMul() {
...
}
}
public class Cislid {
public List<Cour> getCeleses() {
...
}
public List<String> getOrVu() {
...
}
}
public class Cour extends OimPreesshor {
public String getPiin() {
...
}
}
public class Drismdiod {
public List<String> getPuced() {
...
}
}
public class Neprars {
public File getUen() {
...
}
public List<Drismdiod> getZins() {
...
}
public File getEselk() {
...
}
}
public class OimPreesshor {
public Rhassem getJiam() {
...
}
public Sarde getEgpot() {
...
}
}
public class Pemsi {
public List<String> getUipre() {
...
}
}
public class Rhassem extends Slasmfe {
public int getSisas() {
...
}
}
public class Sarde extends Chrest {
public List<Pemsi> getSaPleucs() {
...
}
}
public class Slasmfe {
public List<String> getIcong() {
...
}
}
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:
Cislid toar
...and the following method:
public void process(File item)
...write code to process the eselk of each celes of toar.
process(toar.getCeleses().get(0).getOimPreesshor().getEgpot().getChrest().getArMul().getEselk());
Related puzzles: