in reply to OO, inheriting functions from other packages

Getting access to functions is not what inheritance is for. Inheritance is used when you have a class that is just like another class except for some variations in behavior of specific methods. Most of the time, the relationship between classes is "foo has a bar" not "foo is a bar." When in doubt, don't use inheritance.
  • Comment on Re: OO, inheriting functions from other packages

Replies are listed 'Best First'.
Re^2: OO, inheriting functions from other packages
by sschneid (Deacon) on Jul 22, 2004 at 16:28 UTC
    Maybe 'inherit' was the wrong word to use. Semantics, schemantics! ;)

    -s.
      Semantics, schemantics!

      Semantics, indeed! It makes a very big difference whether you meant inheritance, or something else. Each approach has different pros and cons, so using one term when you mean another has major ramifications for any answers. I'm not trying to hammer you for making a mistake in terminology -- we all do that now and again -- but it is an important thing to keep in mind.