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
When do you generally use a class over a struct?
What is the use of parse in c#?
What are desktop applications examples?
What is difference between web and window application?
Explain what is copy constructor?
Constructor to an arbitrary base constructor?
Can enum have methods c#?
Is it possible to inline assembly or il in c# code?
What is concatenation and when should it be used?
Explain how many types of exception handlers are there in .net?
What are tuples c#?
From which base class do all Web Forms inherit from?
What is the difference between arraylist and list in c#?
Is c# static or dynamic?
How do you access a constant field declared in a class?