Subj : Re: accessing methods of base class To : netscape.public.mozilla.jseng From : "Richard Cornford" Date : Mon Jul 21 2003 11:27 am "Brendan Eich" wrote in message news:bffi8e$lan1@ripley.netscape.com... > Your code says: > > function Shape(Number_x, Number_y) { > > var type = 'Shape'; > var x = 0; > var y = 0; > . . . > } > >Those variables are simply function locals, they are not >instance or member variables of the objects created via >'new Shape(...)' expressions. ... There are circumstances were the local variables (including inner function definitions) of a constructor function may be considered private instance members:- Though using the technique Douglas Crockford describes on that page renders normal prototype based inheritance impractical. Richard. .