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 the difference between public and static modifiers?
Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component
Explain how to redirect tracing to a file?
What is singleton activation mode in .net?
Explain boxing and unboxing in .net.
Do you know what is garbage collector?
SAP Business One(this is intigrated tool of .net)
Is .net core stable?
Which file is taken by compiler when we have both file Application and Server Configuration file?
What is reflection and what is it for?
What is the use of system.diagnostics.process class in .net?
How many types of transactions are there in com + .net ?
What is 'Common Type System' (CTS) in .NET?
What is WSDL? Explain its architecture?
What is the use of common language runtime?