Song Lee

Song Lee

  • NA
  • 47
  • 38.4k

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

Oct 14 2014 5:32 PM
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)