ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  Dot Net  >>  Dot Net General
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions
 Dot Net General interview questions  Dot Net General Interview Questions
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions
Question
is c#.net supports multiple inheritance?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: is c#.net supports multiple inheritance?
Answer
# 1
No.C# sharp does not support multiple inheritance .
Single inheritance is only possible in c#
 
Is This Answer Correct ?    9 Yes 6 No
Laxmi
 
  Re: is c#.net supports multiple inheritance?
Answer
# 2
Yes Supports multiple inheritance,
by using interface
 
Is This Answer Correct ?    17 Yes 4 No
Srinivas
 
 
 
  Re: is c#.net supports multiple inheritance?
Answer
# 3
c# doesnot provide multiple inheritance as it can lead to 
abiguity for compiler
but we can use multiple inheritance in c# in interface 
concept
 
Is This Answer Correct ?    12 Yes 0 No
Pavan
 
  Re: is c#.net supports multiple inheritance?
Answer
# 4
HI GUYS,

C#.NET SUPPORTS ONLY SINGLE LEVEL OF INHERITENCE AND 
MULTILEVEL OF INHERITENCE IS SUPORTED THROUGH INTERFACES

REG
ARAVIND REDDY
 
Is This Answer Correct ?    9 Yes 6 No
Aravind Reddy
 
  Re: is c#.net supports multiple inheritance?
Answer
# 5
no it does not support multiple inheritance
 
Is This Answer Correct ?    6 Yes 2 No
Ajay
 
  Re: is c#.net supports multiple inheritance?
Answer
# 6
hai friends,
we can achieve this multiple inheritence through 
interfaces..
ex:interface I1
{
  void add();

}
interface I2
{
  void add();
}

class sample:I1,I2
{
I1.add()
{
console.write("this is add method");
}
 I2.add()
{
console.write("this is del method");
}
}

//main()
{
I1 i1=new sample();
i1.add();
I2 i2=new sample();
i2.add();
}
}

here we can achieve multiple inheritence and we can avoid 
the naming conficts..hope it will be usefull ........
 
Is This Answer Correct ?    9 Yes 1 No
Jagan
 
  Re: is c#.net supports multiple inheritance?
Answer
# 7
The above one is a right answer but the reader who reads it 
for referance plz Note line :
                
        I1 i1=new sample();
        i1.add();

This might confusing but It means that We have created 
object of I1 interface class but with sample as a assigned 
object which is valic in this case.
Now call of i1.add() will call the method of interface I1 
which points to or defined in Sample class 
This will more clearer if you will append two or three more 
simple methods like subtract() and try to call it as above 
one which actually a part of Mostly used Multiple 
Inheritance funda.
personally speaking it will benefitial to you if try 
yourself
Hope readers like tips
 
Is This Answer Correct ?    0 Yes 0 No
Dipal Mehta
 
  Re: is c#.net supports multiple inheritance?
Answer
# 8
hiii friends,

c# not support multiple inheritance its only support single level inheritance and in multiple inheritance support through interface
 
Is This Answer Correct ?    2 Yes 0 No
Kinjal
 
  Re: is c#.net supports multiple inheritance?
Answer
# 9
Through Interfaces multiple inherirance is possible.But 
single inheritance is possible with inheritance only.
 
Is This Answer Correct ?    0 Yes 0 No
Krishna Chaitanya
 

 
 
 
Other Dot Net General Interview Questions
 
  Question Asked @ Answers
 
How can we convert XML data into DataBase table IN .Net? Wipro2
What is a resource? Provide an example from your recent project. Wipro1
What is the difference between Server.Transfer and Response.Redirect?  3
What is different between Web User Control and Web Custom Control?  1
What application do you use to install a Windows service?  1
Which method do you use to redirect the user to another page without performing a round trip to the client?  2
What is Assembly manifest? what all details the assembly manifest will contain. Ksb2
What is boxing?  2
1.What is the major advantage of polymorphism? Please don't simply say binding. Specify any other reason. 247Customer1
Can u any body send the DotNet Interview questions and answers to my mail please....... mindukuru@yahoo.com  1
What is a formatter? TCS1
What is the Difference between imperative and interrogative code?  1
What is Delegate? Have ever used Delegates in your project. Deloitte1
Difference between assembly manifest & metadata  2
What are remotable objects in .NET Remoting?  1
Can you configure a .NET Remoting object via XML file?  1
How do you define the lease of the object?  1
What is the raise event used for? Wipro4
Name some of the languages .NET support?  2
What is Application Domain?  1
 
For more Dot Net General Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com