Consider the follow class declarations:
public class Conho extends Ispront {
public List<String> getXiCin() {
...
}
}
public class Creneoul {
public List<Prifla> getCiases() {
...
}
public List<Shrias> getPhios() {
...
}
}
public class Fridcur {
public Creneoul getPluda() {
...
}
public List<Conho> getPsems() {
...
}
}
public class Heun {
public File getGaled() {
...
}
public int getBiuss() {
...
}
}
public class Ispront {
public int getBroas() {
...
}
public Heun getSca() {
...
}
}
public class Nand {
public Siness getUcia() {
...
}
public OriSheari getFeTadas() {
...
}
}
public class Nocrer {
public List<String> getElVi() {
...
}
public List<Fridcur> getTaGles() {
...
}
}
public class OriSheari extends Nocrer {
public int getPorax() {
...
}
}
public class Prifla {
public String getAros() {
...
}
}
public class Shrias extends SoiCiessstir {
public List<String> getAdal() {
...
}
}
public class Siness {
public int getAbuer() {
...
}
}
public class SoiCiessstir {
public File getSloua() {
...
}
}
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:
Nand cimi
...and the following method:
public void process(int item)
...write code to process the biuss of each psem of the first taGle of cimi.
for (Fridcur taGle : cimi.getFeTadas().getNocrer().getTaGlesList()) {
process(taGle.getPsems().get(0).getIspront().getSca().getBiuss());
}
Related puzzles: