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
What is managed code execution?
What is .net and why it is used?
What is alias ? Is it used in .Net ?
Explain the difference between constants and read-only variables?
What is the difference between constants and read-only variables?
Which namespace is used to support multithearding in .NET?
What is Entity Relationship Model in .NET?
Difference between class and interface in .net?
How to create multiple inheritance in c#, with example?
How do I spawn a thread?
How boxing and unboxing occures in memory?
What is the difference between asp.net & vb.net and explain architecture?
How can you turn-on and turn-off cas?
What are asp.net authentication providers and iis security?
What is the new three features of COM+ services, which are not there in COM (MTS)