.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

Methods

Posted By: iswarya     Posted Date: November 24, 2011    Points:5   Category :C#
What does the keyword virtual mean in the method definition?

Responses
Author: Narayanan             
Posted Date: November 25, 2011     Points: 20   

Hi,
It is a Modify a Method,Property index or event declaration
Check this link
http://msdn.microsoft.com/en-us/library/9fkccyh4%28v=vs.80%29.aspx

Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
Author: Pankaj Chahar             
Posted Date: November 26, 2011     Points: 20   

Hi,
It will give an option to change the Body of method into drived class using overridden keyword.

For more information about virtual method please go through the link provided below
Check this link
http://msdn.microsoft.com/en-us/library/9fkccyh4%28v=vs.80%29.aspx


Pankaj Chahar
Deserve more...


Author: prabhakar.pandey@net             
Posted Date: December 02, 2011     Points: 20   

Virtual keyword in a method indicates that this method will be overridden in its derived class.
in its derived class,we have supply the override keyword with the given method.

More you can explore on:
http://prabhakaritstuff.wordpress.com/



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