Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- abstract class Slide implements Runnable {
- public void run() { }
- }
- public class Test extends Slide {
- public void run() {System.out.println("Test thread running"); }
- public static void main(String[] args) {
- Test t = new Test();
- Thread thr = new Thread(t);
- thr.start();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment