inheriting from vc++ ? etc.

P

Peter Plumber

Hi,

I am just a (maybe) beginner in .NET
having some basic questions about the limits.
I suppose easy to answer for someone already using it ...



what are the limits of inheritance?

is is possible it possible to inherit from a vc++-class?
and if yes, under which conditions?
and what about inheritance from com-objects?

is multiple inheritance supported by .NET?

is there any difference between VB and C#?

I did not really understand how vc++ is integrated into .NET.
are there any limits when interacting between c# and vc++?

thx

Peter
 
C

Cor Ligthert [MVP]

is is possible it possible to inherit from a vc++-class?
and if yes, under which conditions?

Yes if it is a managed code class.
and what about inheritance from com-objects?
You can inherit a class never an object.
is multiple inheritance supported by .NET?
No

is there any difference between VB and C#?
VB is a kind of family name like C. It contains by instance VBS, VBA, VBNet,
VB6 etc. The C family contains: original C, C++, C#, Java, JavaScript etc.

C# is an individual program language.

Therefore this is not to compare, apples and pears are more like each other.
I did not really understand how vc++ is integrated into .NET.
are there any limits when interacting between c# and vc++?
Yes VC++ can be as only Visual Studio program language be with managed or
with unmanaged code.

I hope this helps,

Cor
 
P

Peter Plumber

thx Cor for the reply
You can inherit a class never an object.

OK, mea culpa
New question:

Is it possible to inherit from COM-Classes?

Is it possible to implement COM-Classes as Interface?

BTW.: Is it possible to use "Implements" for .NET-Classes
or only for those defined as Interface?


New question:
Are there thing I can do C# that are not possible
or much more difficult in VB.NET? (and vice versa?)


Peter
 
C

Cor Ligthert [MVP]

Peter,
Is it possible to inherit from COM-Classes?
Have a look at this thread I think that it gives a lot of answers on your
questions (this is not the subject I like)

http://groups-beta.google.com/group...086bce15ace/9c91349778b4ee26#9c91349778b4ee26
Are there thing I can do C# that are not possible or much more difficult
in VB.NET? (and vice versa?)

The best description I have seen is this one.

http://groups-beta.google.com/group/microsoft.public.dotnet.general/msg/804482b9cce63bb7?hl=en

I hope this helps something

Cor
 

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