virtual Modifier

C# – Modifiers – The virtual Modifier – Why virtual?

Through the series of Articles, we are discussing about Modifiers in C#. In this Article, we will discuss about virtual modifier. virtual modifier is used during the inheritance; deriving classes from it’s base classes. Why virtual is required? Consider two functions, with same name and different signature; for example, Display(String msg) and Display(int value). Assume, these two functions […]

Scroll to top