I have declared two non visual objects:
- uo_food
- uo_goodfood
I’d like to write 2 methods “eat” in a same non visual objects.
How can I do to distinct such call :
public subroutine eat(userobject n) // userobject should be a uo_food type
messagebox("info","food")
end subroutine
and
public subroutine eat(userobject n) // userobject should be a uo_goodfood type
messagebox("info","goodfood")
end subroutine
Thanks,
1rstSol
- uo_food
- uo_goodfood
I’d like to write 2 methods “eat” in a same non visual objects.
How can I do to distinct such call :
public subroutine eat(userobject n) // userobject should be a uo_food type
messagebox("info","food")
end subroutine
and
public subroutine eat(userobject n) // userobject should be a uo_goodfood type
messagebox("info","goodfood")
end subroutine
Thanks,
1rstSol