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 c# entity framework?
What is the difference between dictionary and hashtable in c#?
What are concrete classes?
what happens if you inherit multiple interfaces and they have conflicting method names?
What are destructors in C#?
Explain the difference between the system.array.copyto() and system.array.clone()?
What is sql transaction in c#?
What is static classes?
What happens during the process of boxing?
What is mvc pattern in c#?
What is a static field?
What does the dispose method do with the connection object?
Define assert() method? How does it work?
Can you call from an inherited constructor to a specific base constructor if both base class and an inheriting class has a number of overloaded constructors?
What is the difference between a method and a property?