码上敲享录 > java常见报错解答 > 解决Either make the type abstract or make the inherited method visible

解决Either make the type abstract or make the inherited method visible

上一章章节目录下一章 2018-08-08已有2291人阅读 评论(0)

This class must implement the inherited abstract method WXPayConfig.getAppID(), but cannot override it since it is not visible from AppConfig. Either make the type abstract or make the inherited method visible


解决方法:

myeclipse编写代码时候,类名处有红色报错符号,但类中的方法和属性都没报错。原因是这个类和此类的继承类不在同一个包,继承类中的方法的权限修饰符使用了默认的(没写)或者private。所以把两个继承关系的类放置在同一包,或者修改父类的修饰符为public。


本文链接:http://yayihouse.com/yayishuwu/chapter/1446


向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交