Calling Method Example in C#

code:

with object creation from class:

If we don’t want to use object we can use static keyword here:

Static method can be invoked with class name:

Can be invoked without creating objects: