Re: [R] Question on callNextMethod

2012-11-06 Thread cberry
Simon Knapp writes: > I don't understand why I get the following results. I define two classes > 'Base' and 'Derived', the latter of which 'contains' the first. I then > define a generic method 'test' and overload it for each of these classes. I > call 'callNextMethod()' in the overload for Deriv

Re: [R] Question on callNextMethod

2012-11-06 Thread Martin Morgan
On 11/06/2012 07:03 AM, Simon Knapp wrote: I don't understand why I get the following results. I define two classes 'Base' and 'Derived', the latter of which 'contains' the first. I then define a generic method 'test' and overload it for each of these classes. I call 'callNextMethod()' in the ove

[R] Question on callNextMethod

2012-11-06 Thread Simon Knapp
I don't understand why I get the following results. I define two classes 'Base' and 'Derived', the latter of which 'contains' the first. I then define a generic method 'test' and overload it for each of these classes. I call 'callNextMethod()' in the overload for Derived. From the output, it appear