Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyThread extends Thread {
- public MyThread(){
- System.out.println("konstruqtori");
- }
- public void run(){
- System.out.println("bar");
- }
- public void run(String s){
- System.out.println("baz");
- }
- }
- public class rasdabechdavs {
- public static void main(String[] args){
- MyThread t = new MyThread(){
- public void run(){
- System.out.println("foo");
- }
- };
- t.start();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement