Home > DeveloperSection > Interviews > Why is the virtual keyword used in code?

Posted on    August-27-2014 11:44 PM

 C# C# 
 1 Answer(s)
  967  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Posted on    August-27-2014 12:00 AM

The virtual keyword is used while defining a class to specify that the methods and the properties of that class can be overridden in derived classes.

Don't want to miss updates? Please click the below button!

Follow MindStick