.NETGURU
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




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification