No, this method `msg` is public.

But if you create

var myClass= Class.create(
    {  initialize:function(str)
        {   this.str=str ;
                {alert ("privat"+this.str);}
        } ,
            {alert ("public"+this.str)}

then `msg` is private. All method that your add to `this` will be public.
For creating private methods use that was advised or agreements (for example: all private methods started with __ -> __private_method, public_method).

You received this message because you are subscribed to the Google Groups "Prototype 
&" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to