I'm trying to do the following in java:
public class ClassName<E> extends E
Doing this however, I'm getting a:
error: unexpected type
Is it simply the case, that java can't do this? - and if so, how will I achieve this effect? It works flawlessly in C++, with templates, alike:
template<typename E>
class ClassName: public E
What I'm really trying to achieve, is to be able to chain classes together this way, to achieve the effect of multiple inheritance in java.