D
David E.
So I have an object of class (user defined) Dave() and Dave2()
This may seem totally assuming, but I have a string that I get.
It will either be "Dave" or "Dave2".
Is there a way to
if string=="Dave"
(Dave)string.theMethod()
else
(Dave2)string.theMethod()
end
I know, again, I am taking a lot for granted, but in Python I was able
to do this sort of thing... And of course in Java...
This may seem totally assuming, but I have a string that I get.
It will either be "Dave" or "Dave2".
Is there a way to
if string=="Dave"
(Dave)string.theMethod()
else
(Dave2)string.theMethod()
end
I know, again, I am taking a lot for granted, but in Python I was able
to do this sort of thing... And of course in Java...