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

is c#.net supports multiple inheritance?

Answer Posted / jagan

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 ?    24 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the difference between encrypting a password and applying a hashing?

1125


Explain the .net framework overview?

1054


What is managed code in .NET?

1175


State some of the different languages supported by .net?

1008


One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid this problem?

962


What is connected and diconnected database ?

1045


What is dot net architecture?

1061


Example from .net. Integer & struct are value types or reference types in .net?

1008


Conceptually, what is the difference between early-binding and late-binding?

1074


Is there built-in support for logging?

1061


what will do to avoid prior case?

1049


Difference between abstract class and interface in .net?

1082


Is .net capable of supporting multi-thread?

1024


What is the microsoft .net?

1114


What is the advantage of packaging over xcopy in .net?

1064