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


Top 5 Contributors of the Month
Subhransu Sekhar Jena
Jean Paul
satyapriyanayak
SP
abhays

Home >> Forum >> OOPS >> Post New QuestionBookmark and Share Subscribe to Forum

What is function overriding? give me an example

Posted By: Ramesh P     Posted Date: October 31, 2010    Points:2   Category :OOPS
What is function overriding? give me an example

Responses
Author: Dhivakaran          Accepted Answer   
Posted Date: October 31, 2010     Points: 10   

function overriding is one in which functions have the same name and same number,type of arguments.. its only the implementations that differs.. they are accessed based on the object of the class being called

For example you can refer the below link

http://www.codeproject.com/KB/cs/cs_methodoverride.aspx

-
Dhivakaran T
Author: Ramesh P             
Posted Date: October 31, 2010     Points: 5   

Thanks dhivakaran. It was very useful to me.

Regards,
Ramesh

Regards,


Ramesh

Author: Syed Shakeer Hussain             
Posted Date: October 31, 2010     Points: 5   

Hi Ramesh,
If it is really helpfull then why you dnt mark it as Answered.

Author: Vinodh             
Posted Date: September 18, 2011     Points: 20   

When more than one function is created with same name but with different argument then it is know as function overloading.
Area(length*breath)
Area(radius)



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