Consider the follow class declarations:
public class Chesplesh extends Pnimmon {
public List<String> getIssbi() {
...
}
}
public class Enpsud {
public List<String> getHeChoe() {
...
}
}
public class Gipre {
public int getShoc() {
...
}
public Psuacsec getPsuou() {
...
}
}
public class Pekdek extends Chesplesh {
public Whon getDuia() {
...
}
}
public class Pnimmon {
public List<String> getKicpo() {
...
}
public List<Tant> getDiEds() {
...
}
public File getAcTiec() {
...
}
}
public class Psuacsec {
public byte[] getPid() {
...
}
public List<Pekdek> getPrics() {
...
}
}
public class Tant {
public List<String> getIlEac() {
...
}
public Enpsud getPloar() {
...
}
}
public class Whon {
public String getFeng() {
...
}
}
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:
Gipre ca
...and the following method:
public void process(File item)
...write code to process the acTiec of each pric of ca.
process(ca.getPsuou().getPrics().get(0).getChesplesh().getPnimmon().getAcTiec());
Related puzzles: