Answer Posted / saurabh
Suppose, you have class A, which implements a method Show().
This class is now Inherited by Class B and Class C.
Now both B,C will have Show available to them or may be they
have overridden the functionality of Show() defined by Class
A. So far this is fine.
Now If I have Class D inheriting from Class B and Class C.
Which Show() method will class D be using? How many
implementations of Show will be available there for class D?
This is the problem.
| Is This Answer Correct ? | 55 Yes | 11 No |
Post New Answer View All Answers
Why do we need delegates in c#?
What is file extension of webservices?
What's the difference between system.string and system.text.stringbuilder classes?
What is difference between for and foreach in c#?
What is boolean method?
What are strongly typed objects?
What is function c#?
Can a class or a struct have multiple constructors?
Why do we use readonly in c#?
What is hashtable in c# with example?
What is assembly version series sequence?
Is friend a constructor?
If you define a user defined data type by using the class keyword, is it a value type or reference type?
What is the difference between “dispose” and “finalize” variables in c#?
What is difference between ienumerable and ienumerator in c#?