Class relationships: Correct Solution


Consider the follow class declarations:

public class Blir {
    public byte[] getQiFe() {
        ...
    }
}

public class Duptle {
    public Hedme getUlDre() {
        ...
    }

    public List<Imes> getSiZuacs() {
        ...
    }
}

public class Eant {
    public byte[] getBasm() {
        ...
    }

    public List<Spotand> getUsses() {
        ...
    }
}

public class Fobun extends Teswan {
    public Eant getSper() {
        ...
    }
}

public class Geting {
    public String getMucqa() {
        ...
    }
}

public class Hedme {
    public int getRoPror() {
        ...
    }
}

public class Hessat {
    public int getQou() {
        ...
    }

    public Fobun getEukor() {
        ...
    }
}

public class Imes extends Sqesssti {
    public byte[] getCrema() {
        ...
    }
}

public class Prisme {
    public Duptle getBiIass() {
        ...
    }

    public String getCism() {
        ...
    }
}

public class Psermass {
    public File getZiTalf() {
        ...
    }

    public List<Hessat> getChors() {
        ...
    }
}

public class Puco {
    public byte[] getGiol() {
        ...
    }
}

public class Spotand {
    public List<String> getVeBue() {
        ...
    }
}

public class Sqesssti extends Psermass {
    public List<Puco> getEiSas() {
        ...
    }
}

public class Teswan {
    public List<Blir> getSoUphs() {
        ...
    }

    public Geting getDaPra() {
        ...
    }

    public byte[] getHil() {
        ...
    }
}
  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:

    Prisme go

    ...and the following method:

    public void process(byte[] item)

    ...write code to process the hil of each chor of each siZuac of go.

    Solution

    process(go.getBiIass().getSiZuacs().get(0).getSqesssti().getPsermass().getChors().get(0).getEukor().getTeswan().getHil());

Related puzzles: