Code example for Constructor

Methods: getDeclaringClass

    public String getName() {
        // this is different from the constructor name which is the full name 
        return constructor.getDeclaringClass().getSimpleName();
    protected Member getMember() {
        return constructor;
     * Create a new instance (implements Function). 
     * @param input the constructor arguments. 
     * @return a new instance. 
Stop searching for code, let great code find you!  Add Codota to your java IDE