CodeSteps

Python, C, C++, C#, PowerShell, Android, Visual C++, Java ...

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

C# – Access Modifiers – internal and protected internal access modifiers

C# provides different access modifiers to allow to define the scope for the classes and it’s members. We already discussed few of the modifiers in our previous Articles. In this Article, we will go through internal and protected internal access modifiers. internal Access Modifier internal access modifier in C# restricts the access of classes and it’s […]

Scroll to top