Virtual Methods and Overriding : Virtual : Class C# Examples


C# Examples » Class » Virtual »

 

Virtual Methods and Overriding






A virtual method is declared as virtual in a base class.
A virtual method is redefined in one or more derived classes.
When redefining a virtual method in the derived class, the override modifier is used.
When overriding a method, the type signature of the method cannot be changed.
A virtual method cannot be static or abstract.




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Class
» Virtual