• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reg. Runnable

 
Angela Narain
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another example from Barry Boone's exam :

The correct answer is 1
But it should get compile time error as Dots implements
Runnable but does not provide the run() method.
 
james hoskins
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello angela,
you are right, no run() method means Dots must be declared abstract.
kind regards,
james
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic