关于synchronized的用法求助
我在一个抽象类中定义了一个抽象方法,这个方法我想加上synchronized 但是eclipse提示错误
public abstract class {
......
public abstract void close();
......
}
//错误提示为:The abstract method connect in type MobilePort can only set a visibility modifier, one of public or protected
应该怎样写?谢谢