在Java中,我能否强制要求继承抽象类的类实现一个带有Object类型参数的构造函数?
类似于
```java public abstract class MyClass { public MyClass(Object object) { // constructor implementation } } ```
类似于
```java public abstract class MyClass { public MyClass(Object object) { // constructor implementation } } ```
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){
}
}