UML Specification Question

V

Vinny

I have an object that contains a method that returns an interface type. The
idea behind it is that the object will be able to return any number of
objects that implement the specific interface.

I have been designing my object model in Visio and the class diagram turned
RED and the error returned was:
UMLE00046: StartLocation_Get[Parameter] : [Parameter - WFR1] - An interface
cannot be used as the type of a parameter.

Could someone explain why this breaks a UML specification? And how could i
go about implementing a solution where the methods are not stuck on a
specific object type.

The development is being done in VB6 so inheritance is out of the question.
And i would like to avoid returning the generic "Object" type

Thanks!

Vinny
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top