well i have a harder assignment now, that i'm having trouble getting started. we are into arrays now.
basically what i have is a class file with methods given to me. i just have to call the methods and stuff.
but the methods are private. the name of the class is SurveyAnalysis. and one method is a bool method called OpenDataFile. and it accepts a string.
if i have a string called "fileName", that i create in Main, and i try this code:
SurveyAnalysis.OpenDataFile(fileName);
i get this error:
"An object reference is required for the nonstatic field, method or property"
what am i doing wrong?
thanks in advance
basically what i have is a class file with methods given to me. i just have to call the methods and stuff.
but the methods are private. the name of the class is SurveyAnalysis. and one method is a bool method called OpenDataFile. and it accepts a string.
if i have a string called "fileName", that i create in Main, and i try this code:
SurveyAnalysis.OpenDataFile(fileName);
i get this error:
"An object reference is required for the nonstatic field, method or property"
what am i doing wrong?
thanks in advance