• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I need Help With an Interface...plz

 
Josh Tambini
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok this is my mainclass


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);
ff.TurnOff();
it worked! but with the interface it doesnt..
anyidea???
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 ]
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
Josh Tambini
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic