C Sharp (C#)

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 […]

C# – Modifiers – abstract Modifier

C# provides modifiers to modify the declarations of types and type members. We have discussed Access Modifiers in our previous Articles. In this Article, we will discuss one of the modifier which is abstract Modifier. abstract Modifier We use this modifier to indicate the type has incomplete implementation. This can be used with below types: Classes […]

Scroll to top