Consider the follow class declarations:
public class Aldow {
public File getPoHos() {
...
}
public List<Liod> getAngs() {
...
}
}
public class Cammi extends SpeSlemme {
public NelZidreol getOng() {
...
}
public Itskoss getUoBui() {
...
}
}
public class Itskoss {
public File getRuqe() {
...
}
public List<Steabchesh> getBiNouls() {
...
}
}
public class Liod {
public Preeng getEnDahe() {
...
}
public String getPri() {
...
}
public File getAnpe() {
...
}
}
public class NelZidreol {
public List<String> getMacso() {
...
}
}
public class Pluftrit extends Aldow {
public List<String> getMeQa() {
...
}
}
public class Preeng {
public String getCism() {
...
}
}
public class SnaGleata {
public String getQeTak() {
...
}
}
public class SpeSlemme {
public String getOnth() {
...
}
public List<SnaGleata> getKerpos() {
...
}
}
public class Steabchesh extends Pluftrit {
public int getOcGecar() {
...
}
}
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:
Cammi seac
...and the following method:
public void process(File item)
...write code to process the anpe of the first ang of the first biNoul of seac.
for (Steabchesh biNoul : seac.getUoBui().getBiNoulsList()) {
for (Liod ang : biNoul.getPluftrit().getAldow().getAngsList()) {
process(ang.getAnpe());
}
}
Related puzzles: