What I would like to do is extend a class based on what is in the constructor. Is this possible? With my limited knowledge of java this would be the best example of what I'm trying to do.
public class Test extends extendClass {
Object extendClass;
public Test(Object extendClass){
this.extendClass = extendClass;
}
}
EDIT: What I would like is to have a sort of modular class that extends another class that is defined in the constructor I'm just using the constructor as an example. What I would be doing is running the code of the super class and then running mine as well. Also Object is just an example as well I know the class that I'm going to be extending.