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
Can you declare struct members as protected?
What is thread in c#?
What is hashset c#?
Why do we use reflection in c#?
What is the difference between int and int in c#?
What is value c#?
Explain About DTS package
Enlist some of the properties of a thread class?
What is the difference between interface and inheritance in c#?
What is the difference between public, static, and void?
What are the 3 elements of delegation?
What are satellite assemblies?
What are cshtml files?
List the two important objects of ado.net and also list the namespaces that are commonly used in ado.net to aid in connection to a database.
Are arrays immutable c#?