Can we have the method in drived class with the same name
which is there in base class?
Answer Posted / alcheringa
yes we can have that. in order to invoke the method of the
same name we use base keyword before the method name.
if the method in the base class is virtual, which is the
case in most of the abstract classes we actually override
the method in the derived class.
it is therefore not a constraint in any way.
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
Why we use extension methods in c#?
Can we overload indexer in c#?
Why do we use parameters in c#?
What is gac? How to put assembly in gac?
What is AutoMapper in C#?
What are sorted lists?
How long will it take to learn c#?
Give 2 scenarios where static constructors can be used?
Explain the difference between private and shared assembly?
Can we inherit partial class in c#?
What are Uses of CLR
Does c# have a 'throws' clause?
Describe the process of “exception handling implementation” in c#?
What is out int in c#?
What is int16?