我如何从第二个和第三个获取子构造函数?由于公共摘要首先不起作用?
public abstract class First {
public Point position;
public First() {} //how do i make this constructor like an abstract?
// so that it will go get Second constructor or Third
}
public class Second extends First {
public Second (Point x) {
position = x;
}
}
public class Third extends First {
public Third(Point x) {
position = x;
}
}