can you overload a method of class A in Class B if it is
derived class of A?If it is yes tell me how is it possible?

Answer Posted / dhanunjaya

yes,we can overload.Most of the times we can overload a
method within same class only but overloading is possible
between classes.So internally overloading is possible in
class B.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do unused Namespaces in c# affect run-time performance?

726


What types of object can I throw as exceptions?

730


What is difference between event and delegate in c#?

670


Is int reference type c#?

700


Why we use delegates in c#?

684


What is difference between Enum and Struct?

749


What is managed or unmanaged code?

845


Is list a collection c#?

727


What are functions c#?

718


What is difference between abstract class and interface in c#?

686


What is a hashset c#?

641


What is the difference between dynamic and var in c#?

664


What is a generic method?

654


What are class fields?

693


Define an array?

706