im having probleam with this interface:
to call the method "TurnOff()" From this Class:
when i tried to call the "TurnOff()" method directly from the main class like this.
SortClass ff = new SortClass(some);
it worked! but with the interface it doesnt..
p.s: i also tried this "IOff ISort =new SortClass();" instead of this "IOff ISort =(IOff)SortClass();" still didnt worked
[ December 11, 2004: Message edited by: Josh Tambini ]
Originally posted by Ernest Friedman-Hill:
"It doesn't work" is very vague. Do you get errors when you compile the program, or when you run it? In either case what exactly is the wording of the error message? Finally, if either the compile-time or runtime errors include a line number, indicate that specific line in your source code with a comment.
i dont get any errors....neighter compile time errors nor run time erros.
the variable dosnt change to false tough....
any idea why?