I have an abstract parent class Server
and 3 subclasses InternalServer
, ExternalServer
and LoggableInternalServer
. Server
has the public abstract method receiveClient()
.
The application has a list of Server
which contains a number of objects of the three aforementioned types. This list is iterated and the receiveClient()
method is called in each iteration. The implementation of receiveClient()
varies depending on the subclass.
Is there a way to represent this polymorphic behaviour using a Sequence Diagram? If not, what other diagram could I use to document this behaviour?