How do i get the sub constructor from second and third? Since public abstract first doesnt work?
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;
}
}