Consider the follow class declarations:
public class Arwal {
public String getLon() {
...
}
}
public class ClePoilil {
public int getPri() {
...
}
}
public class Fect {
public String getZuc() {
...
}
public List<Grocenx> getEmPioecs() {
...
}
}
public class Grocenx extends Arwal {
public byte[] getDast() {
...
}
public String getIncud() {
...
}
}
public class Rascroh {
public int getRosh() {
...
}
public Fect getTiec() {
...
}
}
public class Rinwhast extends Rascroh {
public List<ClePoilil> getEnTes() {
...
}
}
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:
Rinwhast dul
...and the following method:
public void process(String item)
...write code to process the incud of the first emPioec of dul.
for (Grocenx emPioec : dul.getRascroh().getTiec().getEmPioecsList()) {
process(emPioec.getIncud());
}
Related puzzles: