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 do you mean by sealed classes and static classes?
What is hashtable c#?
What is a Command Object in C#?
How do you determine whether a string represents a numeric value?
How do destructors and garbage collection work in c#?
Can we override interface method?
Explain about accessibility modifier 'protected internal'?
What is the difference between string and stringbuilder in c#?
What is the difference between c and c sharp?
what happens if you inherit multiple interfaces and they have conflicting method names?
What is the difference between method overriding and method overloading?
What is exe in c#?
Can constructor be overloaded in c#?
What are handlers in c#?
How to transpose multi-dimensional array?