Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do you implement multiple inheritance in .NET?

Answers were Sorted based on User's Feedback



How do you implement multiple inheritance in .NET?..

Answer / swapna

Using interfaces we can implement multiple inheritance
in .net.

Is This Answer Correct ?    13 Yes 0 No

How do you implement multiple inheritance in .NET?..

Answer / shadab

To implement multiple inheritance in .net we will have to
use Interface...

see the below program..

using System;
interface Ifirst
{
void display();
}
class use:Ifirst
{
public void display()
{
Console.WriteLine("This is a method");
}
public static void Main()
{
use u=new use();
u.display();
}

}

----------
for more help visit my blog
http://www.shadab-programminghelp.blogspot.com

Is This Answer Correct ?    8 Yes 0 No

How do you implement multiple inheritance in .NET?..

Answer / deep

USING INTERFACE

Is This Answer Correct ?    8 Yes 1 No

How do you implement multiple inheritance in .NET?..

Answer / kamlesh sharma

use of interfaces

Is This Answer Correct ?    6 Yes 1 No

How do you implement multiple inheritance in .NET?..

Answer / mohamed ali

using of interface we do the multiple inheritance in .net

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More C Sharp Interview Questions

if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?

0 Answers   Siebel Systems,


What is difference between sleep () and wait ()?

0 Answers  


What is the difference between an integer and int?

0 Answers  


Why data types are important?

0 Answers  


what are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?

1 Answers   4Cplus,


what is ment by Unboxing?

3 Answers  


What are types in c#?

0 Answers  


What is marker interface?

1 Answers   TCS,


Why do we need to override in c#?

0 Answers  


In c#, what will happen if you do not explicitly provide a constructor for a class?

0 Answers  


How?s method overriding different from overloading?

2 Answers   Visual Soft,


Why are dynamic link library used over static one?

0 Answers   C DAC,


Categories