Multiple inheritance equivalent in Java/CSharp

H

Hung Jung Lu

Hi,

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

A relevant url is:
http://www.cyberdyne-object-sys.com/oofaq2/DynInh.htm

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
 
F

Frank Oquendo

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

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.

http://code.acadx.com
(Pull the pin to reply)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top