[OT] Java, C#: why no multiple inheritance?
From: crichmon (crichmon23_at_hotmail.com)
Date: 07/09/04
- Next message: USCode: "Re: Newbie Q: to point or not to point ?"
- Previous message: Richard Hayden: "operator+ overload resolution"
- Next in thread: Phlip: "Re: [OT] Java, C#: why no multiple inheritance?"
- Reply: Phlip: "Re: [OT] Java, C#: why no multiple inheritance?"
- Reply: Markus Dehmann: "Re: [OT] Java, C#: why no multiple inheritance?"
- Reply: Markus Dehmann: "Re: [OT] Java, C#: why no multiple inheritance?"
- Reply: Peter Ammon: "Re: [OT] Java, C#: why no multiple inheritance?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 08 Jul 2004 23:14:58 GMT
Hi,
The main language that I progam in is C++. I have been studying and
experimenting with Java and C# and I'm somewhat curious as to why those
languages don't allow multiple inheritance? I am aware that they do allow
classes to implement multiple Interfaces in addition to the optional single
inheritance from another class, but I'm concerned at the fact that
Interfaces don't allow for data members, just member functions. Is the
inheritance thing to prevent code bloat and/or preserve some ideal of
object-oriented design? I have typically found that multiple inheritance in
C++ can be very advantageous, and I'm concerned as to how I might have to
re-design my objects if I ever convert C++ code to C# or Java. Any info out
there?
thanks,
crichmon
- Next message: USCode: "Re: Newbie Q: to point or not to point ?"
- Previous message: Richard Hayden: "operator+ overload resolution"
- Next in thread: Phlip: "Re: [OT] Java, C#: why no multiple inheritance?"
- Reply: Phlip: "Re: [OT] Java, C#: why no multiple inheritance?"
- Reply: Markus Dehmann: "Re: [OT] Java, C#: why no multiple inheritance?"
- Reply: Markus Dehmann: "Re: [OT] Java, C#: why no multiple inheritance?"
- Reply: Peter Ammon: "Re: [OT] Java, C#: why no multiple inheritance?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|