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 does il do?
How is .net able to support multiple languages?
What is the difference between vb.net and vc#.net?
How to manage pagination in a page using .net?
How to get the number after decimal point in .net?
Explain how to spawn a thread?
What are Attributes in .NET?
How do you generate a strong name?
What is difference between system.string and system.stringbuilder classes?
Please explain what are an inheritance, polymorphism, and encapsulation?
What is .net standard?
Explain the difference between managed and unmanaged code?
How does the generational garbage collector in the .net clr manage object lifetime? What is non-deterministic finalization?
What is .net debug & trace?
what is the meaning silverligt control