我在一个抽象类中定义了一个抽象方法,这个方法我想加上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应该怎样写?谢谢