Why multiple inheritance is not possible in c#

Answer Posted / satya

let me explain clearly,,,, suppose there is a class called
A(base class)and it has a method Print(). now I am
implementing heirarchical inheritance and derived classes
are B, C and D. now in three derived classes that print() is
there. now the problem is form which class (from derived
classes for first class A) i have to take print() ?
If signature is same then no problem, if it differs what is
the result?

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the advantage of singleton class?

686


What is the function of .IsDescendent()?

774


Why do we need constructor in c#?

687


What is the benefit of dependency injection c#?

662


Write a program in C# for checking a given number is PRIME or not.

850


Give an example of a directcast.

688


Is it good to use var in c#?

626


Does c# support a variable number of arguments?

772


Is 0 an unsigned integer?

656


What is code verification?

717


There were a lot of questions asked, so I will list the topic (and add a what is "topic" and know pros/cons). Extreme programming, what is a transaction, various SDLC design approaches, what is a namespace, define a good test case, what is a stored proc, webservice? design patterns? linker? compiler? access modifiers? stack vs. queue? arrays vs. linked lists? sorting algorithms? recursion? OOP principles?

1784


What do u mean by thread safe?

697


What are escape sequences explain with example?

730


Can var be null c#?

630


What is a three-tier application.

782