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 how to redirect tracing to a file?
Elements of CAS
Conceptually, what is the difference between early-binding and late-binding?
What is the transport protocol you use to call a seb service soap?
What is gac in .net?
What is a variable of implicit type and what is its scope?
What is immutability?
What is typical about a windows process in regards to memory allocation in .net?
What does jit compilation do in .net?
Is Driver Script any how related to AOM?
Do you know the difference between the stack and the heap?
Is .net core free?
What is the difference between .net and laravel?
How to prepare parametrized (with more than one parameters) crystal report. Please tell me the code procedure, if any body can?
Explain About GDI object ?