Consider the follow class declarations:
public class Arkbil {
public int getEwen() {
...
}
}
public class Blont {
public String getCoci() {
...
}
}
public class Cecces extends OrkSosprish {
public Iviou getOltin() {
...
}
}
public class CuaPrecste {
public int getIoMoen() {
...
}
public List<Knuange> getBliens() {
...
}
}
public class DioTrabei extends TroDalen {
public NicRisteu getOen() {
...
}
public List<Spri> getPrungs() {
...
}
}
public class EdiDiarrif {
public String getCenba() {
...
}
public DioTrabei getWoCaer() {
...
}
}
public class Elscan {
public File getGred() {
...
}
}
public class Gilod extends KudFle {
public byte[] getEcIpca() {
...
}
}
public class Hiap {
public List<CuaPrecste> getCeBes() {
...
}
public Streuro getAsm() {
...
}
}
public class Iviou {
public String getPrea() {
...
}
}
public class Knuange extends Sisspor {
public Blont getStiss() {
...
}
}
public class KudFle {
public File getFauh() {
...
}
public EdiDiarrif getPrei() {
...
}
}
public class Lestter extends Hiap {
public String getTolec() {
...
}
}
public class NicRisteu {
public int getScrux() {
...
}
}
public class OrkSosprish extends Elscan {
public byte[] getPri() {
...
}
public int getErVosou() {
...
}
}
public class Sisspor {
public List<String> getUog() {
...
}
}
public class Sonpre {
public byte[] getPaCrale() {
...
}
public List<Gilod> getSuQagras() {
...
}
}
public class Spri {
public int getAsIamda() {
...
}
public Arkbil getSimro() {
...
}
}
public class Streuro {
public List<Cecces> getTeuls() {
...
}
public String getPiFemi() {
...
}
}
public class TroDalen {
public List<Lestter> getWotres() {
...
}
public String getCri() {
...
}
}
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:
Sonpre noss
...and the following method:
public void process(int item)
...write code to process the erVosou of the first teul of the first wotre of each suQagra of noss.
for (Lestter wotre : noss.getSuQagras().get(0).getKudFle().getPrei().getWoCaer().getTroDalen().getWotresList()) {
for (Cecces teul : wotre.getHiap().getAsm().getTeulsList()) {
process(teul.getOrkSosprish().getErVosou());
}
}
Related puzzles: