

Ans:
for example:
package
{
import flash.display.Sprite;
public class MethodOverloadingExample extends Sprite
{
public namespace method1;
public namespace method2;
public namespace method3;
public function MethodOverloadingExample():void
{
method1::overloadedMethod(1);
}
method1 function overloadedMethod(a:int):void
{
trace("method 1, args=" + arguments.join("|"));
var out:Boolean = m2::overloadedMethod(1, 2);
}
method2 function overloadedMethod(b:int, c:int):Boolean
{
trace("method 2, args=" + arguments.join("|"));
var out:Number = m3::overloadedMethod(1, 2, 3);
return true;
}
method3 function overloadedMethod(a:int, b:int, c:int):Number
{
trace("method 3, args=" + arguments.join("|"));
return 3;
}
}
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.