java 强制扩展类
2022-09-02 01:11:36
在Java中,我是否可以以某种方式强制扩展抽象类的类以 Object 作为参数来实现其构造函数?
类似的东西
public abstract class Points {
//add some abstract method to force constructor to have object.
}
public class ExtendPoints extends Points {
/**
* I want the abstract class to force this implementation to have
* a constructor with an object in it?
* @param o
*/
public ExtendPoints(Object o){
}
}