Hello, everyone!
I have a quick question relating to... well, if you read the title you already know.
If I had access to an IDE right now, I would check this quick, but I do not. Anyways, I best explain myself through example, so:
public abstract class AbstractSuperclass { //have abstract named constants private static abstract final int CONSTANT_A; private static abstract final int CONSTANT_B; }public class NonAbstractSubclass extends AbstractSuperclass { //constants given values CONSTANT_A = 5; CONSTANT_B = 2; }
Is the above code legal? To put it in words, can I define abstract named constants in an abstract class, and then give those constants values in a non-abstract subclass of that abstract class?