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

Posted on    August-27-2014 11:44 PM

 C# C# 
Ratings:
 1 Answer(s)
  804  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Points:3910
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