Duplicate Function Deffinition error
I have an Interface as suh:
function loadObject(string:String):Boolean
In my class that implements this I have:
loadObjects(monsterFile:String):Boolean{}
loadObjects(itemsFile:String):Boolean{}
Obviously this is wrong in actionsript when it should NOT be due to the language being statically typed.
Now in pervious threads people said to user ...rest and ...args as they will allow me to pass in what ever I want. How ever in this case I have very specific arguments to pass in, since I cannot do this in AS how would I use rest and or args to do this and make sure that one method loads only the MonsterFile (what ever file they pass in, or the Items file...? Essentially should they be two methods or one?