Forgot your password? Click here.
The virtual is keyword which is mainly used to modify a method, property, indexer or event declaration and allow for it to be overridden in a derived class and the Virtual method can be overridden in the any class which it inherit already and the implementation of a Virtual member can be changed by an overriding member in a derived class. When a Virtual method is invoked at the run-time type of the object is checked for an overriding member.