• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

modifier such as void ?

 
achana chan
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all !
I have a class with a number of methods in it.
Some of these methods are declared
"public boolean BlaBla()"
"public void moreBlaBla()"
The calling client application will import this class and invoke it using
"boolean result = tellMe.BlaBla()"
How do I invoke the moreBlaBla() from the client app? At the moment I am getting the "incompatible type" error !
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try:
tellMe.moreBlaBla();
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At the moment I am getting the "incompatible type" error !
Are you trying to assign the void return value of the method to a boolean?
 
achana chan
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !
So I was... Thanks all, problem fixed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic