waltermilner

Untitled

Oct 9th, 2015
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1. abstract class Slide implements Runnable {
  2.  
  3.   public void run() { }
  4. }
  5.  
  6.  
  7.  
  8. public class Test extends Slide {
  9. public void run() {System.out.println("Test thread running"); }
  10.   public static void main(String[] args) {
  11.     Test t = new Test();
  12.     Thread thr = new Thread(t);
  13.     thr.start();
  14.   }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment