How to call a method of an object in C#? - Biz Tech

How to call a method of an object in C#?

Listen
 public class MyClass
{
    public void SayHello()
    {
        Console.WriteLine("Hello, World!");
    }
}

MyClass myObject = new MyClass();
myObject.SayHello();