7
Answers

Calling method from one class to the other in "Static"

Song Lee

Song Lee

10y
901
1
Hello!
 
I have a  method in a public class
 
static void Input ()
         {
            // Coding here
         } 
 
and I was wondering if it is possible for me to call that static method over to another class.
I tried this:
 
Input inp = new Input( );
inp.Start();
 
but it doesn't seem to work (The type or namespace name "Input" could not be found).
 
 
Answers (7)