From sfalcon at fhcrc.org  Fri Mar 16 17:40:09 2007
From: sfalcon at fhcrc.org (Seth Falcon)
Date: Fri, 16 Mar 2007 09:40:09 -0700
Subject: [Rd] Inherited S4 methods
In-Reply-To: <45F9C191.5020803@aon.at> (cstrato@aon.at's message of "Thu,
	15 Mar 2007 22:58:41 +0100")
References: <45F9C191.5020803@aon.at>
Message-ID: <m2fy855ehi.fsf@ziti.local>

cstrato <cstrato at aon.at> writes:
> I have a variation of this question:
> Is it possible to use the same function name, e.g. "myfunction" in both, 
> an S4
> baseClass and derivedClass. The method "myfunction" in derivedCalss should
> extend the functionality defined in baseClass, analogously to C++ methods.
> If this is possible, does there exist an example?

The S4 object system is generic function based.  Methods are not
contained inside classes.

You can define a generic 'myfunction' and then define methods for
BaseClass and DerivedClass.

+ seth

-- 
Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center
http://bioconductor.org



[Rd] Inherited S4 methods
Seth Falcon