package thead.start.thread_6;

import lombok.SneakyThrows;

public class ThreadA extends Thread {
    private final ObjectService objectService;

    public ThreadA(ObjectService objectService) {
        super();
        this.objectService = objectService;
    }

    @SneakyThrows
    @Override
    public void run() {
        super.run();
        objectService.serviceMethod();
    }
}



