Subj : Object copying To : netscape.public.mozilla.jseng From : Jashin Eugene Date : Mon May 31 2004 08:51 pm Hello. I can't clearly understand what happened in this case: var a = new Object; //or var a = make_me_obj();, where make_me_obj creates user defined object from C++. var b = a; the var b will have the copy of value a or just another reference to an object in var a? From what it depends? and question, is any example (wrote on C++) of class with private data, which made copy itself in var b in case, described above. More interested in coding of copy constructors, and order of allocing/deallocing memory for private data. Thanks. .