The system I want to create must invoke the receptor’s call(x) with the objects from the pile that correspond the receptors interface.
I have a pile of objects of the classes; PinkTriangle, GreenSylinder and RedSquare, implementing Interfaces Triangle, Square and Circle, and a set of receptors; TriangleHole, SquareHole og SircleHole, who’s call(x) functions accept Triangle, Square or Circle interfaces (or children). (more…)