Consider the follow class declarations:
public class AngRasoss extends Sinbi {
public File getFimas() {
...
}
public File getSefda() {
...
}
}
public class Aswon extends AngRasoss {
public int getAdmoi() {
...
}
}
public class Blocent {
public File getCaBe() {
...
}
}
public class Bocs {
public byte[] getEma() {
...
}
public List<Aswon> getFewls() {
...
}
}
public class Coer {
public List<Eece> getDuthos() {
...
}
public List<Lesttar> getSeTes() {
...
}
}
public class Eece {
public byte[] getAuc() {
...
}
}
public class Iana {
public String getEted() {
...
}
}
public class Inganct {
public Screr getEmeft() {
...
}
public Bocs getCeol() {
...
}
}
public class Larflo extends Pontclen {
public File getSihoc() {
...
}
}
public class Lesttar extends Paphat {
public Nosstroct getAnnbe() {
...
}
}
public class Nosstroct extends Larflo {
public List<Iana> getOols() {
...
}
public Tradi getEne() {
...
}
}
public class Paphat {
public String getEcOsm() {
...
}
}
public class Pontclen {
public List<Inganct> getCaldos() {
...
}
public Blocent getTes() {
...
}
}
public class Screr {
public String getPra() {
...
}
}
public class Sinbi {
public File getNeAn() {
...
}
}
public class Tradi {
public File getSesm() {
...
}
}
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:
Coer na
...and the following method:
public void process(File item)
...write code to process the sefda of each fewl of each caldo of the first seTe of na.
for (Lesttar seTe : na.getSeTesList()) {
process(seTe.getAnnbe().getLarflo().getPontclen().getCaldos().get(0).getCeol().getFewls().get(0).getAngRasoss().getSefda());
}
Related puzzles: