After you create a class in C#, what must you do before you can use it in your code? [closed]

You need to create the object if you wanted to use instance members of a class.

new operator (C# Reference)

Class1 obj  = new Class1();
obj.Yehaa();

You should also probably take a walk around

Leave a Comment