473,320 Members | 2,097 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

From COM to .NET

Hi all,

During the COM age, Microsoft's policy was against implementation
inheritance.
Now, it turns 180 degrees and all the .NET Framework relies heavily on
implementation inheritance.
What's changed?

Thanx,
Adrian.
Jul 21 '05 #1
4 1462
Good question.

Does the Framework ~really~ rely heavily on implementaion
inheritance? Sure everything derives from object, but I
mean in a deep or wide way. I think that you'll find the
implementaion inheritance to be pretty light-weight
compart to something like MFC.

It might be interesting (or not) to compare how often a
class (in the framework) derives from another class
and/or how many interfaces it implements.

I guess one thing that has changed is there is support
for interface inheritance in the Common Language
Runtime. If I'm not mistaken (and I may be) there was no
II support in the language (VB).

Implementation inheritance has a certain set of
challenges associated with it. Especially when changes
are made to the base classes. Now Microsoft has to be
careful when it considers changing it's base classes
because we'll all have to live with it.

Hope you get some better answers that this one.
-----Original Message-----
Hi all,

During the COM age, Microsoft's policy was against implementationinheritance.
Now, it turns 180 degrees and all the .NET Framework relies heavily onimplementation inheritance.
What's changed?

Thanx,
Adrian.
.

Jul 21 '05 #2

"Brad Quinn" <br***********@hotmail.com> wrote in message
news:22*****************************@phx.gbl...
Good question.

Does the Framework ~really~ rely heavily on implementaion
inheritance? Sure everything derives from object, but I
mean in a deep or wide way. I think that you'll find the
implementaion inheritance to be pretty light-weight
compart to something like MFC.

What exactly do you mean by saying "deep or wide way"?
I'm talking about the visibile part (the thing that .NET programmers use in
their everyday life). And it is build on the implementation inheritance
concept.

It might be interesting (or not) to compare how often a
class (in the framework) derives from another class
and/or how many interfaces it implements.

I guess one thing that has changed is there is support
for interface inheritance in the Common Language
Runtime. If I'm not mistaken (and I may be) there was no
II support in the language (VB).

Implementation inheritance has a certain set of
challenges associated with it. Especially when changes
are made to the base classes. Now Microsoft has to be
careful when it considers changing it's base classes
because we'll all have to live with it.

Hope you get some better answers that this one.
-----Original Message-----
Hi all,

During the COM age, Microsoft's policy was against

implementation
inheritance.
Now, it turns 180 degrees and all the .NET Framework

relies heavily on
implementation inheritance.
What's changed?

Thanx,
Adrian.
.

Jul 21 '05 #3
If I would to offer my guess (which i suppose I am now
doing) it would be that MS limited COM's ability to to
implementation inheritance simply because the they needed
something that would work across multiple languages.
There was no core framework that all languages derived
from, so it would have been nearly impossible to allow
implementation inheritance between, say, VB and FoxPro, or
Delphi and C++ through the COM layer.

One of the great things about everyong compiling to a
single language (msil) is that we can now enforce rules
that all languages must follow and this opens the door to
allow implementation inheritence.

Anyway, may or may not be the right answer, but ....

Kirk
-----Original Message-----
Hi all,

During the COM age, Microsoft's policy was against implementationinheritance.
Now, it turns 180 degrees and all the .NET Framework relies heavily onimplementation inheritance.
What's changed?

Thanx,
Adrian.
.

Jul 21 '05 #4

"Kirk" <mc**************@hotmail.com> wrote in message
news:00****************************@phx.gbl...
If I would to offer my guess (which i suppose I am now
doing) it would be that MS limited COM's ability to to
implementation inheritance simply because the they needed
something that would work across multiple languages.
There was no core framework that all languages derived
from, so it would have been nearly impossible to allow
implementation inheritance between, say, VB and FoxPro, or
Delphi and C++ through the COM layer.

One of the great things about everyong compiling to a
single language (msil) is that we can now enforce rules
that all languages must follow and this opens the door to
allow implementation inheritence.

So now you can use implementation inheritance relationship
between types belonging to different applications/libraries,
written in different languages, but compliant with .NET platform.

Where is the benefit by using the implementation inheritance
model (the"new" tech.), against the using of object composition,
delegation and call-backs model (the "old" tech.).

The previous reply (Brad), says:
"Implementation inheritance has a certain set of
challenges associated with it. Especially when changes
are made to the base classes. Now Microsoft has to be
careful when it considers changing it's base classes
because we'll all have to live with it."

What is the Microsoft answer for that?
Anyway, may or may not be the right answer, but ....

Kirk
-----Original Message-----
Hi all,

During the COM age, Microsoft's policy was against

implementation
inheritance.
Now, it turns 180 degrees and all the .NET Framework

relies heavily on
implementation inheritance.
What's changed?

Thanx,
Adrian.
.

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: |-|erc | last post by:
Hi! Small challenge for you. The index.php uses this file and calls layout(). Take a look at www.chatty.net this file draws the chat login box on the right. I traced the CHAT button it submits...
16
by: Fuzzyman | last post by:
Hello, To create a classic (old style) class, I write : class foo: pass To do the equivalent as a new style class, I write : class foo(object):
2
by: nitin | last post by:
g++ -c $INCLUDES ActualPEResult.cpp In file included from /usr/include/c++/3.2.2/backward/iostream.h:31, from /home/pradeepks/Linux_Porting/dcpfrontier/dcpdev/dcp_components/trap...
4
by: susmita_ganguly | last post by:
Hi I am trying to upgrade from oracle 8i to oracle 9i on the same server ..I don't know much abt migration . Can anyone help me out. Thanks. Susmita
2
by: cs168 | last post by:
Hi I am new in ASP programming so I do use the very basic and simple way to do all my stuff. Now I do really got stuck at how can I loop thru the calculation for all my selection.. My full code is as...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
7
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
1
by: RSH | last post by:
Im trying to create a stored procedure of the following code. I want to set it so that I have to send the first 4 variables (@DB, @BackUpFile,@TestDB,@RestoreFile). I am having trouble when i try...
20
by: Development - multi.art.studio | last post by:
Hello everyone, i just upgraded my old postgres-database from version 7.1 to 7.4.2. i dumped out my 7.1 database (with pg_dump from 7.1) as an sql-file with copy-commands and to one file using...
6
by: ransoma22 | last post by:
I developing an application that receive SMS from a connected GSM handphone, e.g Siemens M55, Nokia 6230,etc through the data cable. The application(VB.NET) will receive the SMS automatically,...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.