Consider the follow class declarations:
public class Beos {
public int getSas() {
...
}
}
public class Bokol {
public byte[] getRiad() {
...
}
}
public class Clanpu {
public int getLus() {
...
}
}
public class Dinhi {
public String getHaAdve() {
...
}
}
public class Muidni extends PheSpast {
public Beos getLente() {
...
}
}
public class Otio {
public String getWaus() {
...
}
public List<Muidni> getAronts() {
...
}
}
public class PheSpast {
public int getCla() {
...
}
public Clanpu getItEn() {
...
}
public String getJassi() {
...
}
}
public class Socpec extends Dinhi {
public List<Otio> getAbecs() {
...
}
}
public class Stinwan extends Socpec {
public List<Bokol> getAsCengs() {
...
}
}
public class Venri {
public Stinwan getVesm() {
...
}
public List<String> getDapia() {
...
}
}
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:
Venri oc
...and the following method:
public void process(String item)
...write code to process the jassi of the first aront of each abec of oc.
for (Muidni aront : oc.getVesm().getSocpec().getAbecs().get(0).getArontsList()) {
process(aront.getPheSpast().getJassi());
}
Related puzzles: