Tag Archives: Software Engineering

A simple way to Java “friends”

Problem: Implement selective exposure of fields and methods in a class. For example, Class A can call M.x(), but Class B should not be allowed to. However, Class A, B, and M do not have subclass-superclass relations nor composition relations, … Continue reading

Posted in Computing | Tagged , | Leave a comment