Consider the follow class declarations:
public class Bluross extends Gliarhi {
public List<Hegi> getComsis() {
...
}
public Thol getBri() {
...
}
public List<String> getHess() {
...
}
}
public class Diards {
public List<String> getMaart() {
...
}
public Ospi getEtZeces() {
...
}
}
public class Dussstro {
public int getRai() {
...
}
public List<Paepchom> getEcars() {
...
}
}
public class Fiodme extends Dussstro {
public byte[] getCeMeie() {
...
}
}
public class Gliarhi {
public String getReu() {
...
}
}
public class Hegi {
public int getWoha() {
...
}
}
public class Hith {
public String getNaeno() {
...
}
}
public class Ospi {
public List<String> getMuac() {
...
}
}
public class Paepchom {
public int getLel() {
...
}
public Stiol getCri() {
...
}
}
public class Siactuan extends Fiodme {
public String getOsm() {
...
}
}
public class Stiol {
public Bluross getPle() {
...
}
public List<Hith> getUsmocs() {
...
}
}
public class Thol {
public int getBle() {
...
}
}
public class TiaIss {
public List<Uhmord> getOnthes() {
...
}
public byte[] getMasec() {
...
}
}
public class Uhmord extends Diards {
public Siactuan getDenen() {
...
}
}
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:
TiaIss ceou
...and the following method:
public void process(List<String> item)
...write code to process the hess of the first ecar of each onthe of ceou.
for (Paepchom ecar : ceou.getOnthes().get(0).getDenen().getFiodme().getDussstro().getEcarsList()) {
process(ecar.getCri().getPle().getHess());
}
Related puzzles: