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


Please Help Members By Posting Answers For Below Questions

What do you mean by sealed classes and static classes?

712


What is hashtable c#?

631


What is a Command Object in C#?

728


How do you determine whether a string represents a numeric value?

707


How do destructors and garbage collection work in c#?

683


Can we override interface method?

722


Explain about accessibility modifier 'protected internal'?

730


What is the difference between string and stringbuilder in c#?

680


What is the difference between c and c sharp?

704


what happens if you inherit multiple interfaces and they have conflicting method names?

657


What is the difference between method overriding and method overloading?

648


What is exe in c#?

661


Can constructor be overloaded in c#?

643


What are handlers in c#?

708


How to transpose multi-dimensional array?

755