GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Microsoft  >  DotNet

 Print  |  
Question:  Can implement same method name in both baseclass And derived class with different action?



August 08, 2006 14:36:32 #3
 VRod   Member Since: Visitor    Total Comments: N/A 

RE: Can implement same method name in both baseclass A...
 
Remember -> This is not recommended. Since the same-name method exists in both the base class and the derived class, with actions in both; therefore at runtime, any of these methods can be called by compiler, it's not in your control. Hence, if the purpose is to override, let only the derived class contain an action; else use different method names.
     

 

Back To Question