How do you implement multiple inheritance in .NET?
Answer Posted / kamal
When we use the Multiple inheritance we use more than one
class. Lets one condition class A and class B are base
classes and class c is is multiple inherting it.And where
class c is inheriting a function .It may be possible that
this function with same name and same signature can present
in both class A and Class B . That time how the compiler
will know that which function it should take whether from
class A or class B.So Multiple inheritance show's an error.
Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
Does c# support templates?
Which of the following operations can you not perform on an ado.net dataset?
What are "class access modifiers" in C#?
How do you encapsulate in c#?
Define assert() method? How does it work?
What is the difference between constant and readonly in c#?
What is a singleton unity?
What is local function?
What is streamreader/streamwriter class?
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
Can we inherit two classes in c#?
What is the difference between // comments, /* */ comments and /// comments?
Difference between value and reference type. What are value types and reference types?
Constructor to an arbitrary base constructor?
Can constructor be protected?