Skip to content

Instantly share code, notes, and snippets.

@Falci
Created March 17, 2014 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Falci/9606802 to your computer and use it in GitHub Desktop.
Save Falci/9606802 to your computer and use it in GitHub Desktop.
package certificacao;
public abstract class ClassA {
public void run(){
System.out.println("running...");
}
}
package certificacao;
public class ClassB extends ClassA implements Runnable {
}
package certificacao;
public class Main {
public static void main(String[] args) {
Runnable classB = new ClassB();
new Thread(classB).start();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment