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


Please Help Members By Posting Answers For Below Questions

Does c# support templates?

636


Which of the following operations can you not perform on an ado.net dataset?

621


What are "class access modifiers" in C#?

615


How do you encapsulate in c#?

558


Define assert() method? How does it work?

712






What is the difference between constant and readonly in c#?

516


What is a singleton unity?

643


What is local function?

616


What is streamreader/streamwriter class?

586


what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?

1526


Can we inherit two classes in c#?

603


What is the difference between // comments, /* */ comments and /// comments?

578


Difference between value and reference type. What are value types and reference types?

586


Constructor to an arbitrary base constructor?

647


Can constructor be protected?

538