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
What is foreach loop in c#?
What do you mean by for each loop?
Is multilevel inheritance possible in c#?
Define assert() method? How does it work?
Explain how to implement an object pool in c#.net
What is .edmx file?
What are the different types of comments in c#?
What is the ouput of the following program?
Why array is faster than arraylist in c#?
How do I create a multi language, multi file assembly?
Why does my windows application pop up a console window every time I run it?
Explain how to add controls dynamically to the form using c#.net.
What is reference types in c#?
What do you mean by generic class in c#?
What does ienumerable mean?