Search:
Namespaces
Discussions
.NET v1.1
Feedback
Does .net framework support multiple inheritance?
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngbeta' list
.
Sam
Hi List,
Does .net framework support multiple inheritance?
Can I derive my code behind class from
2 other base classes?
Now by default its derived from System.Web.UI.
Page
.
Can I derive it from one more class ? Let it be a code
behind class of another aspx file. So that I will have a virtual
function in the base class and can be overridden in the derived class.
??????
pl help if anybody knows about it?
Sam
Reply to this message...
Brian Boyce
Sam,
My understanding is that C# does not support multiple inheritance, it does
support mutliple interface inheritance however. I am not sure whether this
is a limitation of the .Net framework itself or whether smalltalk on the CLR
will support multiple inheritance.
Hope this helps
Brian Boyce
-----Original Message-----
From: Sam [mailto:
Click here to reveal e-mail address
]
Sent: 08 May 2001 20:13
To: aspngbeta
Subject: [aspngbeta] Does .net framework support multiple inheritance?
Hi List,
Does .net framework support multiple inheritance?
Can I derive my code behind class from
2 other base classes?
Now by default its derived from System.Web.UI.
Page
.
Can I derive it from one more class ? Let it be a code
behind class of another aspx file. So that I will have a virtual
function in the base class and can be overridden in the derived class.
??????
pl help if anybody knows about it?
Sam
| [aspngbeta] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngbeta.asp
= JOIN/QUIT
Reply to this message...
=?iso-8859-1?Q?Lu=EDs_Santo-Tom=E1s_Gutierrez?=
No,
You only can derive from one class but you can implement multiple interfaces
The class object is an especial case
-----Mensaje original-----
De: Sam [mailto:
Click here to reveal e-mail address
]
Enviado el: martes, 08 de mayo de 2001 21:13
Para: aspngbeta
Asunto: [aspngbeta] Does .net framework support multiple inheritance?
Hi List,
Does .net framework support multiple inheritance?
Can I derive my code behind class from
2 other base classes?
Now by default its derived from System.Web.UI.
Page
.
Can I derive it from one more class ? Let it be a code
behind class of another aspx file. So that I will have a virtual
function in the base class and can be overridden in the derived class.
??????
pl help if anybody knows about it?
Sam
| [aspngbeta] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngbeta.asp
= JOIN/QUIT
Reply to this message...
Martin Smith
.NET does not allow multiple inheritance of base CLASSES whatsoever. An Interface
to .NET is something COMPLETLEY different than a class (or so I was told by some
Microsoft guys). In fact, to write .NET code in Managed C++, you cannot create
classes using multiple inheritance.
m
--- Brian Boyce <
Click here to reveal e-mail address
> wrote:
[Original message clipped]
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
Reply to this message...
System.Web.UI.Page
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com