How would I get the main program to recognize that I have an outside class that I need to refer to?
I have created a class “Hello”
and I need to refer to an instance of the class
private Hello hello1 = new Hello();
But when I write this code out, it does not recognize “Hello” to begin with..
If your hello class is in the same project with main program you can do it by just adding a using statement as raphael mentioned. If they are not on the same project first you should add reference of the project that includes hello class. Lets say you got 2 projects. 1 main (including your main program) second is hello project(including your hello class). In visual studio extend main project, right click to the references and select “add reference” then select the hello project.
hope it was clear enough.