package cn.edu.bjut.chapter3_1; import cn.edu.bjut.chapter3.Rectangle2; public class PublicQualifierTester { public static void main(String[] args) { Rectangle2 rect = new Rectangle2(30, 20); System.out.println(rect.area()); // 错误 NoQualifier nq = new NoQualifier(); } }