Tuesday, April 21, 2009

What are virtual keyword/virtual method in C#?

Virtual keyword in C# is used during declaration of method/property. These methods are called as virtual methods. The implementation of virtual method can be overridden in subclass. Looking at virtual keyword compiler understands that the method is being overridden in subclass.

Click for more detail.

No comments: