我在一个抽象类中定义了一个抽象方法,这个方法我想加上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应该怎样写?谢谢
......
public abstract void close(); ......
}
//错误提示为:The abstract method connect in type MobilePort can only set a visibility modifier, one of public or protected应该怎样写?谢谢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货