java.lang.IllegalAccessException: Class javaTrianing.ShapeFactory can not access a member of class
?
Rectangle with modifiers "public" 。非法访问异常,但我将Rectangle类的访问权限改为public之后,仍报这样的错误,为什么?测试类和Rectangle类在同一包下。
java.lang.IllegalAccessException: Class javaTrianing.ShapeFactory can not access a member of class
?
Rectangle with modifiers "public" 。非法访问异常,但我将Rectangle类的访问权限改为public之后,仍报这样的错误,为什么?测试类和Rectangle类在同一包下。