I'm currently studying for the AP Computer Science exam. I see some questions which could have a abstract class such as
public abstract class ConstructionWorker {
public ConstructionWorker() {
// implimentation
}
// other methods
}
And another class such as
public class Carpenter extends COnstructionWorker {
public Carpenter() {
super()
}
}
What would the differences in initializing the object be between these two things?
ConstructionWorker bob = new Carpenter();
Carpenter jane = new Carpenter();