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
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