Consider the follow class declarations:
public class Coghcass extends Vokniac {
public List<Puwa> getLelas() {
...
}
}
public class Istse {
public byte[] getOfor() {
...
}
}
public class LunPesm extends Schil {
public List<Istse> getDemuds() {
...
}
}
public class Palsa {
public List<String> getAnSo() {
...
}
}
public class Patfrof {
public Rhaght getCraid() {
...
}
public List<Pelthe> getGopars() {
...
}
}
public class Pelthe {
public List<String> getBeHagpi() {
...
}
}
public class Puwa {
public File getRar() {
...
}
public byte[] getUnIr() {
...
}
}
public class Rhaght extends Spounte {
public Palsa getCin() {
...
}
}
public class Schil extends Serban {
public List<Patfrof> getChitos() {
...
}
}
public class Serban {
public String getOntde() {
...
}
}
public class Spounte {
public Coghcass getOfint() {
...
}
public File getWassa() {
...
}
}
public class Vokniac {
public String getLiBembe() {
...
}
}
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:
LunPesm de
...and the following method:
public void process(byte[] item)
...write code to process the unIr of the first lela of each chito of de.
for (Puwa lela : de.getSchil().getChitos().get(0).getCraid().getSpounte().getOfint().getLelasList()) {
process(lela.getUnIr());
}
Related puzzles: