Constant sign and nodal solutions for a class of nonlinear Dirichlet problems