Multiple inheritance equivalent in Java/CSharp

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hung Jung Lu

    #1

    Multiple inheritance equivalent in Java/CSharp

    Hi,

    This is a question for people that have experience with multiple
    inheritance (MI) or equivalent in Java/C#.

    A relevant url is:


    Java/C# do not have class MI. Java/C# go through interface MI, they
    use containment instead of aggregation, they implement the interface
    methods through delegating to the contained instance members. At least
    this is the normal approach. Problem is of course when some of the
    base interfaces change. It's a pain: you have to edit all the
    subclasses that inherit the interfaces.

    What do people do to circumvent these problems, short of purchasing
    commercial solutions like cyberdyne?

    thanks,

    Hung Jung
  • Frank Oquendo

    #2
    Re: Multiple inheritance equivalent in Java/CSharp

    Hung Jung Lu wrote:
    [color=blue]
    > What do people do to circumvent these problems, short of purchasing
    > commercial solutions like cyberdyne?[/color]

    The best solution is to not cause the problem in the first place: do not
    change existing, implemented interfaces.

    --
    There are 10 kinds of people. Those who understand binary and those who
    don't.


    (Pull the pin to reply)


    Comment

    Working...