I'm trying to deal multimethods issue with no success until now. I'll describe my problem shortly:
I have an abstract base class name Data, which contain one virtual abstract method - "getValue".
Now, 3 classes: A, B and C inherit from Data, while A handle an int, B handle a float and C handle a string.
I want the "getValue" method to rerutn int/float/string acordding to it's object type.
What do I do?