coope/lst/privileged-members.js

13 lines
166 B
JavaScript

function Foo( name )
{
this.getName = function()
{
return name;
};
this.setName = function( newname )
{
name = newname;
};
}