function SubC(a,b,c,d,e){ var newa = "FooA"; this.SuperC = SuperC; this.SuperC(newa,b,c); } SubC.prototype = new SuperC([possible_argument_list]);
Note that the argument list might not make sense when subclassing. It should be taken into consideration already in the SuperC:s constructor, like: function SuperC(a,b,c){ if(arguments.length==0){ return; } } -- th > How does subclassing work with arguments[] ??? > > if I have SuperC(a,b,c) > and I have SubC(a,b,c,d,e) which is derived from SuperC() > > Do I need to pass the arguments from SubC() to SuperC() ? > > If I want to call SuperC() constructor from SubC() > constructor and change an argument, to it, how do I do it? > > Any help/ideas, maybe I'm missing something being stupid... > Thanks Todd. Perhaps I want to change SuperC()'s argument[] > array and call it, is this the/a way??? > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same > old cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1> &refcode1=vs3390 > > > _______________________________________________ > Dynapi-Help mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/d> ynapi-help > ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help