Class relationships: Correct Solution


Consider the follow class declarations:

public class Atheng extends Dilt {
    public List<String> getUlTe() {
        ...
    }
}

public class Dilt {
    public List<Putrent> getPoJieds() {
        ...
    }

    public Prismtha getVew() {
        ...
    }

    public List<Vahes> getRiords() {
        ...
    }
}

public class Prismtha {
    public File getNinha() {
        ...
    }
}

public class Putrent {
    public String getEnac() {
        ...
    }

    public Quon getDeOc() {
        ...
    }
}

public class Quon {
    public File getTreec() {
        ...
    }

    public byte[] getBrana() {
        ...
    }
}

public class Vahes {
    public byte[] getSoJien() {
        ...
    }
}
  1. 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!

    Solution

  2. Given the following variable:

    Atheng idpe

    ...and the following method:

    public void process(byte[] item)

    ...write code to process the brana of each poJied of idpe.

    Solution

    process(idpe.getDilt().getPoJieds().get(0).getDeOc().getBrana());

Related puzzles: