All versions of VC++ since 1.0 support multiple inheritance - it's a
standard C++ feature.
That said, no version of VC++ supports multiple inheritance of managed
(.NET) classes, since this isn't supported by the CLR (although some .NET
languages, such as Eiffel, have managed to fake it).
We can have multiple inheritance with the help of interfaces though.
Think of interfaces as classes which in which you can only have declrations
of the functions and "no" implementations. All functions in the class are
thus abstract and you must override them.
We can have multiple inheritance with the help of interfaces though.
Think of interfaces as classes which in which you can only have
declrations of the functions and "no" implementations. All functions
in the class are thus abstract and you must override them.
It's not the same thing, but yes - you can have multiple interface
inheritance. You can't have multiple implementation inheritance in .NET,
although that's been a standard C++ feature for 10+ years.
I suppose that depends on what you mean by "ATL-style". VC++ 2005 supports
both C++ templates and CLR generics, and they can be intermixed in
interesting ways.
Better than ATL-style template code, that means that we can expect STL-style
template code for .NET, and the ability to use STL containers and algorithms
with managed types. For me, that alone is enough to immediately switch all
my new .NET development from C# to C++ once VC 2005 ships.
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.