

package org.apache.commons.beanutils2;

/**
 */
public abstract class AbstractParent {

    private Child child;

    public Child getChild()
    {
        return child;
    }

    /**
     * Method which matches signature but which has wrong parameters
     */
    public String testAddChild(final String badParameter) {
        return null;
    }

    /**
     * Method which matches signature but which has wrong parameters
     */
    public String testAddChild2(final String ignore, final String badParameter) {
        return null;
    }

    public String testAddChild(final Child child) {
        this.child = child;
        return child.getName();
    }

    public String testAddChild2(final String ignore, final Child child) {
        this.child = child;
        return child.getName();
    }

}
