.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

solve conflicting names

Posted By: seattlegirl     Posted Date: June 13, 2011    Points:5   Category :C#
how to solve conflicting method names in c# while inheritance?

Responses
Author: Amit Mehra             
Posted Date: June 13, 2011     Points: 20   

Hi,

Use the full qualified name..for eg

Class1.MethodName



Thanks,
Amit
Please "Mark As Answer " if this post help you.
Author: Sasi Prabhu             
Posted Date: June 13, 2011     Points: 20   

Try :

Classname objectname=new Classname();
objectname.methodname(parameter1,parameter2,....);



Thanks & Regards,
Sasi Prabhu.
Author: Gowthammanju             
Posted Date: June 13, 2011     Points: 20   

It's up to you to implement the method inside your own class, so implementation is left entirely up to you. This might cause a problem on a higher-level scale if similarly named methods from different interfaces expect different data, but as far as compiler cares you're okay.

Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true
Author: shiv chandra             
Posted Date: June 14, 2011     Points: 20   

Use method with class name. I.e. Classname.FunctionName

Regards
Shiva


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend