Answer Posted / gp_bellamkonda
When we use the Multiple inherutance,we use more than one
class.Suppose class A and class B are base classes and
class c is is multiple inherting it.it may be possible that
this function with same name and same signature can present
in both class A and Class B .At this time how the compiler
will know which function it should take wherether from
class A or class B.
So Multiple inheritance won't work.
To avoid this problem we use Interface..... it means in
interface we just declare a function and in the derived
class we give the definition as per the requirement...means
function should be abstract ... and in interface all funcion
[method] should abstract
| Is This Answer Correct ? | 36 Yes | 6 No |
Post New Answer View All Answers
What is array and arraylist?
What is the use of iqueryable in c#?
What is remote data?
Is concurrent queue thread safe?
What is a decimal c#?
what is the difference between interface and multiple interface?
If c# destructors are so different to c++ destructors, why did ms use the same syntax?
Distinguish between finally and finalize blocks?
What is string class in c#?
What is type keyword in c#?
What is the difference between array and arraylist in c#?
What is disconnected data architecture in c#?
What is the difference between select and selectmany?
Distinguish between the Debug class and Trace class with its functionality?
What are the methods in c#?