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
Explain what is the difference between encrypting a password and applying a hashing?
Explain the .net framework overview?
What is managed code in .NET?
State some of the different languages supported by .net?
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?
What is connected and diconnected database ?
What is dot net architecture?
Example from .net. Integer & struct are value types or reference types in .net?
Conceptually, what is the difference between early-binding and late-binding?
Is there built-in support for logging?
what will do to avoid prior case?
Difference between abstract class and interface in .net?
Is .net capable of supporting multi-thread?
What is the microsoft .net?
What is the advantage of packaging over xcopy in .net?