Instantiation

Hi all geeks,
one fundamental question of class instantiation.

Say if I have class a as follows
[AS]
class a
{
public var prop1;
function func1():void
{
}
}
[/AS]

now when i instantiate this class by
var myClassA=new a();
var myClassB=new a();
does the memory load the function func1 also in the memory for each new instantiation or it maintains only one copy of that function in the memory.

in C++ and Java, only single copy of the method is maintained in the memory. so on call to that method by any of the object of class a only one copy of that method will be called. Each object won’t carry it’s own copy of function.

How is it in ActionScript?:hair: