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:
Post a Comment