csharp virtual keyword
Code Example - csharp virtual keyword
The virtual keyword is used to modify a method, property, indexer,
or event declaration and allow for it to be overridden in a derived class.
For example, this method can be overridden by any class that inherits it