为什么我会显示报错,The left-hand side of an assignment must be a variable
public void testChild() { ChildCourse ccr = new ChildCourse(); ccr.getId() = "3"; ccr.name() = "我是子类型的课程对象实例"; courses.add(ccr);
第三行和第四行报错 The left-hand side of an assignment must be a variable