Abstract class with default value
问题 I am trying to define a abstract Range class which will serve as the base implementation of a number of range classes. The intended use is irrelevant for this question, but so far I have: /** * Abstract generic utility class for handling ranges */ public abstract class Range<T extends Number> { // Variables to hold the range configuration private T start; private T stop; private T step; /** * Constructs a range by defining it's limits and step size. * * @param start The beginning of the range