public interface Example<E>
{
E get(int index);
default E get()
{
return get(0);
}
}
This would be the initial design of the interface. Is something like this an acceptable use of a default method (basically for default arguments), or should they only be used in the future for added functionality?