public class Test {
private final List<ISomeType> things = new LinkedList<ISomeType>();
public <T extends ISomeType> Test(Class<T> clazz, int order) ...
Ok, I think I know why... The constructor in the sub class calls the no-args constructor of super class automatically. But since I've put a different constrcutor in super class, then there is no free default no-args constructor, so it cant invoke it. So, I can either add a no-args constrructor to super class, or call super(x,y) in the subclass. Sound ...
Hi I'm getting methods name and construtors name using java reflect , but this one only we will get methods name and costructors name after compilation.but my questions is before compilation means from .java class how can we will get methods name and constructor name ?. Note : without using java reflection..